PostgreSQL database default location on Linux

后端 未结 8 1328
南笙
南笙 2020-12-12 12:56

What is the default directory where PostgreSQL will keep all databases on Linux?

8条回答
  •  孤街浪徒
    2020-12-12 13:27

    Connect to a database and execute the command:

    SHOW data_directory;
    

    More information:

    https://www.postgresql.org/docs/current/sql-show.html https://www.postgresql.org/docs/current/runtime-config-file-locations.html

提交回复
热议问题