PostgreSQL database default location on Linux

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

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

8条回答
  •  庸人自扰
    2020-12-12 13:15

    /var/lib/postgresql/[version]/data/
    

    At least in Gentoo Linux and Ubuntu 14.04 by default.

    You can find postgresql.conf and look at param data_directory. If it is commented then database directory is the same as this config file directory.

提交回复
热议问题