Re: file signature for files that make up postgres database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: file signature for files that make up postgres database
Дата
Msg-id 8965.1299191327@sss.pgh.pa.us
обсуждение исходный текст
Ответ на file signature for files that make up postgres database  (Lee Duynslager <lee.duynslager@gmail.com>)
Список pgsql-hackers
Lee Duynslager <lee.duynslager@gmail.com> writes:
> Hi I am trying to recover a postgres database from a ext3 partition
> that the filesystem has become corrupt and lost files.  Can anybody
> tell me what are the file signatures for the files that comprise a
> postgres database?

Look at PageHeaderIsValid in bufpage.c.  Those tests are pretty weak if
only applied once, but if you got matches on the first ten or twenty 8K
pages of a file, you could probably conclude it was a PG file with high
confidence.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Quick Extensions Question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Quick Extensions Question