Skip site navigation (1) Skip section navigation (2)

Re: _USE_32BIT_TIME_T Patch

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Owais Khan <owais(dot)khan(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Hamid Quddus <hamid(dot)quddus(at)enterprisedb(dot)com>
Subject: Re: _USE_32BIT_TIME_T Patch
Date: 2012-08-30 12:39:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Thu, Aug 30, 2012 at 6:34 AM, Owais Khan <owais(dot)khan(at)enterprisedb(dot)com> wrote:
> Hello,
> We are getting crash while using plperl on Win32 as ActiveState perl(Win32)
> uses 32-bit time_t structures. So, We have to compile DB Server's code also
> with 32-bit time_t structure.
> Patch is adding _USE_32BIT_TIME_T in preprocessor definitions in case
> platform is Windows-32 for all project files.

For additional background info, we did originally define this macro
for compatibility with third party code:;a=commitdiff;h=22867ab9867a145b676f906b98f491c4496a70da

however it got removed here for some reason:;a=commitdiff;h=cd004067742ee16ee63e55abfb4acbd5f09fbaab

The bottom line is, without it, pl/perl will crash with modern
versions of ActiveState Perl on Win32 (Windows users cannot use
Strawberry Perl as it doesn't contain the shared library we need).

This should definitely go in 9.2, and ideally the earlier branches
that didn't have it defined as well (this has been reported in the
past for 9.1 - for example; -
though I'm a little worried that adding it there may cause other
existing addons to require recompilation.

Dave Page
Twitter: @pgsnake

EnterpriseDB UK:
The Enterprise PostgreSQL Company

In response to


pgsql-hackers by date

Next:From: David FetterDate: 2012-08-30 13:06:39
Subject: Re: MySQL search query is not executing in Postgres DB
Previous:From: Dimitri FontaineDate: 2012-08-30 11:08:43
Subject: Re: multi-master pgbench?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group