Wednesday , May 29 2024

How to Change the Schema Name in PostgreSQL

We may want to change the schema name because of some needs. For this we can use the following script.

First, we list the schemes with the command \dn as follows.


We change the name of the faruk scheme with the help of the following command.


We changed the schema name to ERDEM. Use \dn command to check whether the name has changed.


About Faruk Erdem

Leave a Reply

Your email address will not be published. Required fields are marked *