Re: Missing magic block - Mailing list pgsql-general

From Tom Lane
Subject Re: Missing magic block
Date
Msg-id 10115.1178851148@sss.pgh.pa.us
Whole thread Raw
In response to Re: Missing magic block  (Mario Munda <mario.munda@gmail.com>)
Responses Re: Missing magic block
List pgsql-general
Mario Munda <mario.munda@gmail.com> writes:
> I had to comment some includes out, or else i get some errors.

Perhaps you are compiling against an old or incomplete set of
Postgres header files?

> #ifdef PG_MODULE_MAGIC
> PG_MODULE_MAGIC;
> #endif

The problem with that coding is that it will silently not produce
a magic block if you are compiling against pre-8.2 Postgres headers.
If you remove the #ifdef protection does it still compile?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: WAL file internals and why a 64 bit will not work on a 32 bit
Next
From: Ron Johnson
Date:
Subject: Re: Views- Advantages and Disadvantages