PostgreSQL: Important Database Administrator Commands Part I

In this post, I am sharing some important and basic command for Database Administrator of PostgreSQL.

Check version of PostgreSQL:

Create database using the script:

Change owner of the database:

Create a full copy of the database with structure and data:

Create database User using the script:

Change password of the User:

Upgrade existing User to Superuser:

Reload PostgreSQL configuration file:

Rotate PostgreSQL Log file:

Find Postgres server start time:

Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from