![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Maybe this sounds stupid, but, where is the actual database file? I'm sure there's a file that is the actual DB, but what/where? |
#3
| |||
| |||
|
|
Maybe this sounds stupid, but, where is the actual database file? I'm sure there's a file that is the actual DB, but what/where? all the files under the data/ directory are the database. |
|
--Bryan ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your message can get through to the mailing list cleanly |
#4
| |||
| |||
|
|
On Fri, 26 Dec 2003, Bryan Irvine wrote: Maybe this sounds stupid, but, where is the actual database file? I'm sure there's a file that is the actual DB, but what/where? nope ... depending on what version of postgresql you are running, the newer ones store it in ${PGDATA}/base/<OID>, under which, there are indivicudal files for system tables, indices and tables themselves ... |
#5
| |||
| |||
|
|
On Fri, 26 Dec 2003, Bryan Irvine wrote: Maybe this sounds stupid, but, where is the actual database file? I'm sure there's a file that is the actual DB, but what/where? nope ... depending on what version of postgresql you are running, the newer ones store it in ${PGDATA}/base/<OID>, under which, there are indivicudal files for system tables, indices and tables themselves ... Is there a Postgress documentation section somewhere that would tell me the following: 1) the exact correspondence of the files and tables, indices etc. 2) what are the safe filesystem operations on those files (individual file backup/recovery, moving of files between different postgress computers/installations etc.? |
#6
| |||
| |||
|
|
Hello, fellow myrealbox user! ...rhkelly wrote: Maybe this sounds stupid, but, where is the actual database file? I'm sure there's a file that is the actual DB, but what/where? Is there a Postgress documentation section somewhere that would tell me the following: 1) the exact correspondence of the files and tables, indices etc. 2) what are the safe filesystem operations on those files (individual file backup/recovery, moving of files between different postgress computers/installations etc.? Not to be contrary, but why would you want to know this? |
.
i.e., something I thought *ought to be*
#7
| |||
| |||
|
|
Michael Glaesemann wrote: 2) what are the safe filesystem operations on those files (individual file backup/recovery, moving of files between different postgress computers/installations etc.? Not to be contrary, but why would you want to know this? So that I can put the system into some 'partial/previous' state in a manner which Postgress itself does not support |
#8
| |||
| |||
|
|
rhkelly <rhkelly (AT) myrealbox (DOT) com> writes: Michael Glaesemann wrote: 1) the exact correspondence of the files and tables... 2) what are the safe filesystem operations... Not to be contrary, but why would you want to know this? So that I can put the system into some 'partial/previous' state in a manner which Postgress itself does not support You can't. The connections between data files, xlog, and clog... |
#9
| |||
| |||
|
|
I was simply inquiring about what I consider to be an indispensible element of documentation for *any* application - i.e., the content and format of the files in which the application stores the data. |
#10
| |||
| |||
|
|
rhkelly <rhkelly (AT) myrealbox (DOT) com> writes: I was simply inquiring about what I consider to be an indispensible element of documentation... [ Raises eyebrow... ] I'm not aware of any complex application in which file format details are considered an indispensable part of the user-level documentation. Do Word, Photoshop, Outlook, etc provide that info? |

|
Where you want to be looking is at the developer docs, eg http://developer.postgresql.org/docs/postgres/page.html and at the source code --- probably src/include/storage/bufpage.h src/include/access/htup.h are good starting points. |
![]() |
| Thread Tools | |
| Display Modes | |
| |