Re: [HACKERS] ecpg and the timezone database

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [HACKERS] ecpg and the timezone database
Date: 2004-05-02 18:21:31
Message-ID: 200405021821.i42ILVU15486@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Michael Meskes wrote:
> On Fri, Apr 30, 2004 at 04:48:33PM -0400, Bruce Momjian wrote:
> > Does ecpg need to use the same timezone database as the backend?
>
> I have to check what you changed. ecpg itself does not use the timezone
> database, but some of that code is used in pgtypeslib.

For changes see include/port.h:

#define localtime(timep) pg_localtime(timep)
#define gmtime(timep) pg_gmtime(timep)
#define asctime(timep) pg_asctime(timep)
#define ctime(timep) pg_ctime(timep)
#define difftime(t1,t2) pg_difftime(t1,t2)
#define mktime(tm) pg_mktime(tm)
#define tzset pg_tzset

Right now it is only Win32, but there are plans to use this for all
ports.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2004-05-02 19:23:22 Re: [CHECKER] 4 memory leaks in Postgresql 7.4.2
Previous Message Bruce Momjian 2004-05-02 18:19:24 Re: [HACKERS] ecpg and the timezone database

Browse pgsql-interfaces by date

  From Date Subject
Next Message Simon Dobie 2004-05-02 23:56:26 Problems when using MS Access to display Postgres Data
Previous Message Bruce Momjian 2004-05-02 18:19:24 Re: [HACKERS] ecpg and the timezone database