Postgres数据库文件保存在ubuntu中的哪里? [英] Where Postgres database files are saved in ubuntu?

查看:73
本文介绍了Postgres数据库文件保存在ubuntu中的哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到Ubuntu 10.04文件系统中Postgres 8.x数据库文件的保存位置?

How can I find where Postgres 8.x database files are saved in Ubuntu 10.04 file system?

推荐答案

在postgres中提示,只需执行以下查询即可:

In the postgres prompt, just execute this query:

SHOW data_directory;

也请查看Ubuntu手册:
https://help.ubuntu.com/10.04/serverguide/C/postgresql.html

Check also the Ubuntu manual: https://help.ubuntu.com/10.04/serverguide/C/postgresql.html

这篇关于Postgres数据库文件保存在ubuntu中的哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆