I am using PostgreSQL on Mac, I have created several databases using command line. I am looking into /Library/PostgreSQL/9.2/data and I can not see any .dat file. Am I looking into the wrong place for data files?
I have used the following command: ps auxw | grep postgres | grep -- -D as mentioned postgresql database default location on linux and it gives me the /Library/PostgreSQL/9.2/data directory.
Any ideas?
select setting from pg_settings where name = 'data_directory'
shows you the real path of the data directory (you must be connect to PostgreSQL as a superuser) – a_horse_with_no_name Jan 4 at 16:59