Re: Is the a "magic number" for WAL files

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Is the a "magic number" for WAL files
Дата
Msg-id CAEYLb_VmK-UMm7jjKVtP88+7aFw7ya-SErFNHeycPQ6tTHRX0Q@mail.gmail.com
обсуждение исходный текст
Ответ на Is the a "magic number" for WAL files  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
On 9 December 2011 18:46, Rob Sargent <robjsargent@gmail.com> wrote:
> I would like the "file" command to tell me something other than "data",
> yes even though I can tell by the name (and the directory of course).
> Hoping someone has something I can slip into /usr/share/misc/magic.mgc
> or that directory.

You mean something like this?:

/*
 * Each page of XLOG file has a header like this:
 */
#define XLOG_PAGE_MAGIC 0xD068    /* can be used as WAL version indicator */

Obviously that isn't stable.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: OT DBA type question - GRANT PRIVILEGE
Следующее
От: Jack Christensen
Дата:
Сообщение: Why does aggregate query allow select of non-group by or aggregate values?