On my system, the data folder appears on the command line. You could query it using ps : # ps -o cmd= -C postgres /usr/local/postgresql-8.4.7/bin/postgres -D /var/lib/postgresql/aGNay postgres: writer process postgres: wal writer process /usr/local/postgresql-8.4.7/bin/postgres -D /var/lib/postgresql/aGNay postgres: writer process postgres: wal writer process postgres: autovacuum launcher process postgres: stats collector process
In my case, the data folders are /var/lib/postgresql/aGNay and /var/lib/postgresql/aGNay.
Regards
------------------------- Santiago DIEZ Quark Systems & CAOBA 23 rue du Buisson Saint-Louis, 75010 Paris -------------------------