Config:
/etc/postgresql/VERSION/main/
Data:
/var/lib/postgresql/VERSION/main/
Logs:
/var/log/postgresql/
Where VERSION is 8.3, 8.4, ...