Postgresql – where is postgres database stored on hard disk

databasepostgresql

i want to hand in a course work for marking but i have no idea what files represent the database.
Question:
Where can i find the postgres sql database on my hard disk?
Thanks.

Best Answer

You should use pg_dump to export the database to SQL. Giving the raw files won't work if they are running a different version, 64bit instead of 32bit or something else in the environment.

You can easily export it using pgadmin3