PostgreSQL: location of DB files
I want to keep my Postgresql database files on a separate volume from the OS files. I have a 2TB disc which I plan to mount to the location where PostgreSQL keeps it's files. I have assumed it is at /var/lib/postgresql/8.x/.
My problem is, when I mount a blank volume to that location, I can still see the default database files (postgres, template0 and template1) using psql. If the volume is blank, these shouldn't be there.
Further, I create a database, say "test1" in psql. When I then check the contents of my disc, there is nothing there.
This all means to me that postgresql is actually storing its files somewhere else. Would anybody know where that might be?
|