Skip navigation

每当需要重启一个PostgreSQL,都需要知道数据库在磁盘上的具体位置。在重启前,可以通过如下方法找到数据库在磁盘上的位置。

postgres=# show data_directory;
 data_directory
----------------
 /export/db/postgres
(1 row)</pre>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>