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

From: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
To: Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is the a "magic number" for WAL files
Date: 2011-12-09 19:49:12
Message-ID: CAEYLb_VmK-UMm7jjKVtP88+7aFw7ya-SErFNHeycPQ6tTHRX0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9 December 2011 18:46, Rob Sargent <robjsargent(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jack Christensen 2011-12-09 22:48:00 Why does aggregate query allow select of non-group by or aggregate values?
Previous Message Thom Brown 2011-12-09 19:37:44 Re: Is the a "magic number" for WAL files