In the postgres prompt, just execute this query:
SHOW data_directory;
Check also the Ubuntu manual:
https://help.ubuntu.com/10.04/serverguide/C/postgresql.html
In the postgres prompt, just execute this query:
SHOW data_directory;
Check also the Ubuntu manual:
https://help.ubuntu.com/10.04/serverguide/C/postgresql.html