Re: Problem with ControlFileData structure being ABI dependent

From: Rainer Bauer <usenet(at)munnin(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem with ControlFileData structure being ABI dependent
Date: 2007-12-06 22:45:26
Message-ID: 1tsgl3lc48c9mujtc4n5tde1ln2s3a3qhl@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark wrote:

>This is because of (at least) two changes in the ABI between the runtimes used
>by mingw and VC++.
> 1) Enums are apparently 8 bytes on VC++ but 4 bytes on mingw

They are 4 bytes here on my 32 bit WinXP machine with VS2005SP1.

> 2) time_t is 8 bytes on VC++ but 4 bytes on mingw.

Not sure whether an 8 byte time_t is now required by postgres. But you can get
the old behaviour by defining _USE_32BIT_TIME_T.

Rainer

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2007-12-06 23:07:33 Re: Problem with ControlFileData structure being ABI dependent
Previous Message Alvaro Herrera 2007-12-06 22:03:48 "distributed checkpoint"