X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 505A6D1ED75; Sun, 2 May 2004 15:21:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 76368-03; Sun, 2 May 2004 15:21:32 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id A9D0FD1EE79; Sun, 2 May 2004 15:21:29 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i42ILVU15486; Sun, 2 May 2004 14:21:31 -0400 (EDT) From: Bruce Momjian Message-Id: <200405021821.i42ILVU15486@candle.pha.pa.us> Subject: Re: [HACKERS] ecpg and the timezone database In-Reply-To: <20040502180853.GA7130@trantor.fam-meskes.de> To: Michael Meskes Date: Sun, 2 May 2004 14:21:31 -0400 (EDT) Cc: PostgreSQL-development , PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/8 X-Sequence-Number: 4900 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