Re: timezones to own config file - Mailing list pgsql-hackers

From Tom Lane
Subject Re: timezones to own config file
Date
Msg-id 11006.1150236948@sss.pgh.pa.us
Whole thread Raw
In response to Re: timezones to own config file  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> What I was thinking is why we couldn't just store the information in a
> global shared system table that is only read on config reload. You
> could have a few columns, maybe the first being a list name, which is
> referenced from a GUC.

Hmmm ... if we keep the notion of a GUC that identifies a set of
compatible timezone names, then a table with a primary key of
(tz_set_name, tz_name) doesn't seem quite so awful.  The main
remaining objection I can see is that the postmaster couldn't use
it, only backends.  Now this doesn't matter much as far as timestamp
operations go because I don't think the postmaster does any operations
that need TZ data --- but what of verifying that the GUC variable has
a valid value in postgresql.conf at startup?  If you're willing to
abandon sanity checking on that string, it might work.

One interesting thought about a system table is that it could be
referenced through a syscache, which'd have the nice property that only
the (probably few) values actually referenced in a given session need to
get loaded.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: timezones to own config file
Next
From: Andrew Dunstan
Date:
Subject: Re: CSV mode option for pg_dump