views:

27

answers:

1

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

+1  A: 

In the data directory, just execute this query:

SHOW data_directory;

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

Frank Heikens
> In the data directory??
Mithun P
Do i need to execute the SHOW command from the postgres prompt?
Mithun P
Execute this query just like you execute all queries. You could use pgAdmin, psql or whatever client you use. But, why do you need these files? And did you read the Ubuntu manual?
Frank Heikens
Thanks i got it!
Mithun P