Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 430 Bytes

show-data-directory.md

File metadata and controls

17 lines (12 loc) · 430 Bytes

Show Data Directory

Category: Postgres

You can display the location for the Postgres data directory on Linux or macOS using the following command:

psql -U postgres -c 'SHOW data_directory'

Sample output:

                        data_directory                        
--------------------------------------------------------------
 /Users/joebloggs/Library/Application Support/Postgres/var-12