pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Michael Meskes <meskes@postgresql.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: PostgreSQL-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: [HACKERS] ecpg and the timezone database
Date: Sun, 2 May 2004 14:21:31 -0400 (EDT)
Message-ID: <200405021821.i42ILVU15486@candle.pha.pa.us> (raw)
In-Reply-To: <20040502180853.GA7130@trantor.fam-meskes.de>

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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (7+ messages)

Message-ID: <200405021821.i42ILVU15486@candle.pha.pa.us>
Permalink:  ../200405021821.i42ILVU15486@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200405021821.i42ILVU15486@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pgman@candle.pha.pa.us, meskes@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] ecpg and the timezone database
  In-Reply-To: <200405021821.i42ILVU15486@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox