pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
where is the database physically 2+ messages / 2 participants [nested] [flat]
* where is the database physically @ 2003-01-08 05:32 mitchell laks <mlaks@bellatlantic.net> 0 siblings, 1 reply; 2+ messages in thread From: mitchell laks @ 2003-01-08 05:32 UTC (permalink / raw) To: pgsql-admin Hi. Thank you all for your thoughful comments, Philo and Jeremy. One question wasn't addressed (mixed in with the mess of comments, my fault...). Where is the database located physically - i guess /var/lib/pgsql but how is it broken into files. For instance in mysql, i find the directory /var/lib/mysql has subdirectories labled for the databases and with files in the corresponding directories "representing" the tables in the database. I know that postgresql is more sophisticated, but how does it store those tables and databases? Why would I want to know? I just copied a huge amount of data to a postgresql database - some tables have as more than 500,000 entries. Now I need to monitor the size of this database as it fills the harddrive. For instance, the default install appears to be in the /var directory ( by looking at the output of df, i happen to have a separate partition mounted as /var, which agrees with the postgres user having the /var/lib/pgsql as her home. If it was not a separate partition, i might have trouble sorting out the growth of teh database from the growth of the files on my computer. Another reason to look at the files is to guess how much space to expect the backup files will take up, when i do my backups (like in the next few days). I just havent found the answer in the documentation. Thanks you all. The program is just amazing. Yes it was funny that my last posting had don't kill the postman on the bottom. I promise i had nothing to do with it! :). MItchell ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: where is the database physically @ 2003-01-08 11:53 Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar> parent: mitchell laks <mlaks@bellatlantic.net> 0 siblings, 0 replies; 2+ messages in thread From: Ing. Gabriel Monsalvo @ 2003-01-08 11:53 UTC (permalink / raw) To: mlaks@bellatlantic.net; pgsql-admin Mitchell: The location of the postgresql database, is the value of the $PGDATA enviroment variable, if you are starting the postmaster manually the option -D specified the $PGDATA, if not look up for the script that runs postmaster at system start up. Postgres creates a directory for each database with the oid. Gabriel Monsalvo. ----- Original Message ----- From: "mitchell laks" <mlaks@bellatlantic.net> To: <pgsql-admin@postgresql.org> Sent: Wednesday, January 08, 2003 2:32 AM Subject: [ADMIN] where is the database physically > Hi. Thank you all for your thoughful comments, Philo and Jeremy. One question > wasn't addressed (mixed in with the mess of comments, my fault...). > > Where is the database located physically - i guess /var/lib/pgsql but how is > it broken into files. For instance in mysql, i find the directory > /var/lib/mysql has subdirectories labled for the databases and with files in > the corresponding directories "representing" the tables in the database. I > know that postgresql is more sophisticated, but how does it store those > tables and databases? > > Why would I want to know? I just copied a huge amount of data to a postgresql > database - some tables have as more than 500,000 entries. Now I need to > monitor the size of this database as it fills the harddrive. > For instance, the default install appears to be in the /var directory ( by > looking at the output of df, i happen to have a separate partition mounted as > /var, which agrees with the postgres user having the /var/lib/pgsql as her > home. If it was not a separate partition, i might have trouble sorting out > the growth of teh database from the growth of the files on my computer. > > Another reason to look at the files is to guess how much space to expect the > backup files will take up, when i do my backups (like in the next few days). > I just havent found the answer in the documentation. > Thanks you all. The program is just amazing. > > Yes it was funny that my last posting had don't kill the postman on the > bottom. I promise i had nothing to do with it! :). > > MItchell > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-01-08 11:53 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2003-01-08 05:32 where is the database physically mitchell laks <mlaks@bellatlantic.net> 2003-01-08 11:53 ` Ing. Gabriel Monsalvo <gmonsalvo@rentastucuman.gov.ar>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox