PostgreSQL database default location on Linux

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

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

8条回答
  •  一整个雨季
    2020-12-12 13:12

    Default in Debian 8.1 and PostgreSQL 9.4 after the installation with the package manager apt-get

    ps auxw |  grep postgres | grep -- -D
    postgres 17340  0.0  0.5 226700 21756 ?        S    09:50   0:00 /usr/lib/postgresql/9.4/bin/postgres -D /var/lib/postgresql/9.4/main -c config_file=/etc/postgresql/9.4/main/postgresql.conf
    

    so apparently /var/lib/postgresql/9.4/main.

提交回复
热议问题