Re: Simplifying timezone support

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Simplifying timezone support
Date: 2003-02-20 20:21:09
Message-ID: 24966.1045772469@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Ross J. Reedstrom" <reedstrm(at)rice(dot)edu> writes:
> question about pgsql's time zone parsers. It appears there's at least
> two, since SET TIME ZONE accepts strings like 'US/Eastern', while general
> timestamp parsing doesn't:

The TIME ZONE string is fed to libc (via TZ environment variable); the
other cases are not.

> SET TIME ZONE will silently accept any string at all, and fall back to
> providing GMT when a timestamptz is requested.

Provide a portable way of getting libc to tell us whether it likes TZ,
and I'll be glad to fix this.

Ultimately we should probably get rid of our dependence on the libc
time routines altogether ... but I have no intention of opening that
can of worms right now. See past discussions in the archives.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ross J. Reedstrom 2003-02-20 21:03:07 Re: Simplifying timezone support
Previous Message scott.marlowe 2003-02-20 20:19:08 Re: request for sql3 compliance for the update command

Browse pgsql-patches by date

  From Date Subject
Next Message Ross J. Reedstrom 2003-02-20 21:03:07 Re: Simplifying timezone support
Previous Message Ross J. Reedstrom 2003-02-20 19:34:53 Re: Simplifying timezone support