Friday, September 27, 2019

Showing PostgreSQL Database Database Location (Data Directory)

To show on which file system and directory on which the PostgreSQL Database System stores its databases, we simply run this query:


psql -U postgres -c "show data_directory;"

No comments:

Post a Comment