Re: A renewed plea for inclusion of zone.tab

Lists: pgsql-hackers
From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: A renewed plea for inclusion of zone.tab
Date: 2009-04-06 23:53:39
Message-ID: 878wmdqqyk.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Back before 8.2 came out, I posted:

> Any view over the full timezone names should also include the
> corresponding data from zone.tab in the timezone library source.

I got no meaningful response to this (Tom responded with an erroneous
statement and ignored my explanation of his mistake).

Back before 8.3 came out, Naz Gassiep posted on the same subject:

http://archives.postgresql.org/pgsql-hackers/2008-01/msg00217.php

and got no response at all.

He posted again:

http://archives.postgresql.org//pgsql-hackers/2008-02/msg00552.php

and got no meaningful response.

About every third month, I end up explaining on IRC to some
unfortunate user that the information he needs _is_ available, but
only by extracting zone.tab from the source and loading it up into a
table. At the VERY LEAST, can we PLEASE have the zone.tab file
INSTALLED WHERE IT BELONGS rather than simply ignored, so that even if
further requests to include the information in a system view go
unheard by -hackers, I can at least provide a pgfoundry module or
something to do the job.

To answer the inevitable responses preemptively:

1) The data in zone.tab is needed any time you want to offer a user a
sensible way of choosing his timezone; it associates timezones with
countries and provides additional detail for certain annoying edge
cases.

2) zone.tab does not include every alias name that shows up in
pg_timezone_names. IT'S NOT SUPPOSED TO INCLUDE THEM.

3) zone.tab _IS_ maintained just as carefully as the rest of the data.

I don't know exactly what needs to be changed on the Windows side
(where it is arguably even _more_ important to do this), but for
everyone else, see the attached patch.

--
Andrew (irc:RhodiumToad)

Attachment Content-Type Size
zone-tab.patch text/x-patch 610 bytes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 00:48:55
Message-ID: 1709.1239065335@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:
> At the VERY LEAST, can we PLEASE have the zone.tab file
> INSTALLED WHERE IT BELONGS rather than simply ignored, so that even if
> further requests to include the information in a system view go
> unheard by -hackers, I can at least provide a pgfoundry module or
> something to do the job.

I still see no point in this unless we expose the information in
pg_timezone_names, which requires rather more than a one-line patch.
If you want to prepare such a patch and put it in the queue for 8.5,
go right ahead.

regards, tom lane


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 00:54:53
Message-ID: 204F53A4-6CDA-4EF0-B5EA-BD12C89DC36F@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Apr 6, 2009, at 5:48 PM, Tom Lane wrote:

> Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:
>> At the VERY LEAST, can we PLEASE have the zone.tab file
>> INSTALLED WHERE IT BELONGS rather than simply ignored, so that even
>> if
>> further requests to include the information in a system view go
>> unheard by -hackers, I can at least provide a pgfoundry module or
>> something to do the job.
>
> I still see no point in this unless we expose the information in
> pg_timezone_names, which requires rather more than a one-line patch.

Wouldn't it make it easier for Andrew or someone else to create a
pgFoundry project for 8.4 at the same time as an 8.5 patch? That way I
can get the functionality in 8.4 by installing the (yes, thus far
theoretical) pgFoundry module.

What's the harm in installing zone.tab?

Best,

David


From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 22:12:47
Message-ID: 20090407221247.GA25391@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Apr 06, 2009 at 08:48:55PM -0400, Tom Lane wrote:
> Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:
> > At the VERY LEAST, can we PLEASE have the zone.tab file INSTALLED
> > WHERE IT BELONGS rather than simply ignored, so that even if
> > further requests to include the information in a system view go
> > unheard by -hackers, I can at least provide a pgfoundry module or
> > something to do the job.
>
> I still see no point in this unless we expose the information in
> pg_timezone_names, which requires rather more than a one-line patch.
> If you want to prepare such a patch and put it in the queue for 8.5,
> go right ahead.

There's really no point, and a lot of good stuff lost, in leaving this
thing out. It's not like the few kilobytes it takes up could possibly
matter in the grand scheme of things.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 22:26:14
Message-ID: 20090407222614.GU4525@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

David Fetter wrote:
> On Mon, Apr 06, 2009 at 08:48:55PM -0400, Tom Lane wrote:
> > Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:
> > > At the VERY LEAST, can we PLEASE have the zone.tab file INSTALLED
> > > WHERE IT BELONGS rather than simply ignored, so that even if
> > > further requests to include the information in a system view go
> > > unheard by -hackers, I can at least provide a pgfoundry module or
> > > something to do the job.
> >
> > I still see no point in this unless we expose the information in
> > pg_timezone_names, which requires rather more than a one-line patch.
> > If you want to prepare such a patch and put it in the queue for 8.5,
> > go right ahead.
>
> There's really no point, and a lot of good stuff lost, in leaving this
> thing out. It's not like the few kilobytes it takes up could possibly
> matter in the grand scheme of things.

Agreed, it seems to me that a patch to install zone.tab during "make
install" could be applied at this time (before beta so that packagers
don't complain that we didn't give them time to fix their file lists).
A more complete patch can be discussed for 8.5.

... though there's not much point in arguing over a patch that no one
has even submitted ...

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 22:34:33
Message-ID: 23332.1239143673@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

David Fetter <david(at)fetter(dot)org> writes:
> On Mon, Apr 06, 2009 at 08:48:55PM -0400, Tom Lane wrote:
>> I still see no point in this unless we expose the information in
>> pg_timezone_names, which requires rather more than a one-line patch.

> There's really no point, and a lot of good stuff lost,

Like what? I do not actually believe that anyone needs an interactive
geographical timezone selector based on pg_timezone_names. Any such
application is far more likely to be looking at the system tzdata files.
In any case it would need a lot more data that we aren't supplying
(like, say, a world map...)

My fundamental objection here is that we'd be permanently widening the
API we have to support for timezones, which could come back to haunt us.
I will agree that it's not too likely upstream would stop supporting
zone.tab entirely, but it's quite likely they could change the format or
further complicate its relationship to the actual zone list. I don't
wish to buy into that without a more credible argument that there are
actual database applications that need this data.

regards, tom lane


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: David Fetter <david(at)fetter(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 22:35:38
Message-ID: 1AFBB778-7821-47D4-96A5-53A8FE6F61C2@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Apr 7, 2009, at 3:26 PM, Alvaro Herrera wrote:

> Agreed, it seems to me that a patch to install zone.tab during "make
> install" could be applied at this time (before beta so that packagers
> don't complain that we didn't give them time to fix their file lists).
> A more complete patch can be discussed for 8.5.
>
> ... though there's not much point in arguing over a patch that no one
> has even submitted ...

Andrew did, in fact, submit the patch to install zone.tab.

Best,

David


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: David Fetter <david(at)fetter(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 23:22:52
Message-ID: 20090407232252.GX4525@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

David E. Wheeler wrote:
> On Apr 7, 2009, at 3:26 PM, Alvaro Herrera wrote:
>
>> Agreed, it seems to me that a patch to install zone.tab during "make
>> install" could be applied at this time (before beta so that packagers
>> don't complain that we didn't give them time to fix their file lists).
>> A more complete patch can be discussed for 8.5.
>>
>> ... though there's not much point in arguing over a patch that no one
>> has even submitted ...
>
> Andrew did, in fact, submit the patch to install zone.tab.

Hmm, yeah, that he did. (Seems to be missing "make uninstall" support
though.)

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: alvherre(at)commandprompt(dot)com (Alvaro Herrera), pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-07 23:28:39
Message-ID: 8763hgnivs.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>>>>> "Alvaro" == Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:

>> Andrew did, in fact, submit the patch to install zone.tab.

Alvaro> Hmm, yeah, that he did. (Seems to be missing "make
Alvaro> uninstall" support though.)

The rm -rf in the uninstall rule seems to be sufficient for that.

(What _is_ missing, as I said, is Windows support.)

--
Andrew (irc:RhodiumToad)


From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane), pgsql-hackers(at)postgresql(dot)org, david(at)fetter(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-08 00:16:39
Message-ID: 871vs4ngns.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> David Fetter <david(at)fetter(dot)org> writes:
>> On Mon, Apr 06, 2009 at 08:48:55PM -0400, Tom Lane wrote:
>>> I still see no point in this unless we expose the information in
>>> pg_timezone_names, which requires rather more than a one-line patch.

>> There's really no point, and a lot of good stuff lost,

Tom> Like what? I do not actually believe that anyone needs an
Tom> interactive geographical timezone selector based on
Tom> pg_timezone_names.

As the bard said, "There are more things in heaven and earth, Horatio,
than are dreamed of in your philosophy."

Having been involved in writing an app that would have used exactly
such a thing had it been available, I find your disbelief somewhat ...
unpersuasive. The frequency with which the topic comes up on IRC is
also significant (it's not a multiple-times-per-week thing like window
functions or LATERAL, but it's often enough to be noticed).

The usual conversation goes something like this (generally following
on from some discussion of how to do timezone conversions):

Q: how do I get the list of available zone names?

A: see pg_timezone_names

Q: but there's 1650/1400/560/452 [delete as applicable] entries in
there! how do I know which one to use for any given user? Can I
work it out from the user's location?

A: Some locations have timezones that vary by county level, so it's
hard to automate unless you have a street address and detailed
maps/database of Indiana and other awkward places. Best bet is to
ask the user themselves, once you know what country they're in.

Q: How do you know what zones are in what countries?

A: that info is in zone.tab, which you can find either from your OS's
timezone directory or from the postgres source for your postgres
version. Put that data in a table or something and use it to prompt
the user; it has text to help disambiguate the obscure cases.

Q: ... wtf? why is that not installed anywhere?

Tom> Any such application is far more likely to be looking at the
Tom> system tzdata files.

Only if it's using the system TZ functions to do conversions rather
than doing them inside pg, which certainly isn't how _I'd_ recommend
an app writer do it.

Tom> In any case it would need a lot more data that we aren't
Tom> supplying (like, say, a world map...)

Nope. While I'm sure someone has a use for the lat/long stuff, the
more likely approach is just to select the zone names and explanatory
text for the country of interest, and let the user select a zone. No
extra data needed.

Tom> My fundamental objection here is that we'd be permanently
Tom> widening the API we have to support for timezones, which could
Tom> come back to haunt us. I will agree that it's not too likely
Tom> upstream would stop supporting zone.tab entirely, but it's quite
Tom> likely they could change the format or further complicate its
Tom> relationship to the actual zone list. I don't wish to buy into
Tom> that without a more credible argument that there are actual
Tom> database applications that need this data.

zone.tab doesn't become part of the API any more than the actual
content of timezone/America/New_York is part of the API. It is up to
whoever is providing an interface to access that data to cope with
any changes in format.

--
Andrew (irc:RhodiumToad)


From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-08 16:53:18
Message-ID: 87prfnjddt.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

andrew(at)tao11(dot)riddles(dot)org(dot)uk (Andrew Gierth) writes:
> The usual conversation goes something like this (generally following
> on from some discussion of how to do timezone conversions):
>
> Q: how do I get the list of available zone names?
>
> A: see pg_timezone_names
>
> Q: but there's 1650/1400/560/452 [delete as applicable] entries in
> there! how do I know which one to use for any given user? Can I
> work it out from the user's location?
>
> A: Some locations have timezones that vary by county level, so it's
> hard to automate unless you have a street address and detailed
> maps/database of Indiana and other awkward places. Best bet is to
> ask the user themselves, once you know what country they're in.
>
> Q: How do you know what zones are in what countries?
>
> A: that info is in zone.tab, which you can find either from your OS's
> timezone directory or from the postgres source for your postgres
> version. Put that data in a table or something and use it to prompt
> the user; it has text to help disambiguate the obscure cases.
>
> Q: ... wtf? why is that not installed anywhere?

I can confirm having recently hit something rather like this...

We wanted to indicate which timezone people were in, but in the
absence of having something like zone.tab conveniently available,
people were starting to talk about designing their own ad-hoc, buggy
version of something looking like about half of zone.tab.

> Tom> Any such application is far more likely to be looking at the
> Tom> system tzdata files.
>
> Only if it's using the system TZ functions to do conversions rather
> than doing them inside pg, which certainly isn't how _I'd_ recommend
> an app writer do it.

Right. Having zone.tab data available in the DB would be *way* more
convenient, especially in that it is not at all obvious that it's
always available on systems, let alone in a consistent place.

This isn't an argument for "it must be considered standard,
yesterday." But it's plenty valuable to look to having a way to parse
zone.tab and turn it into a table or two.
--
let name="cbbrowne" and tld="cbbrowne.com" in name ^ "@" ^ tld;;
http://linuxdatabases.info/info/linuxxian.html
"The only thing better than TV with the sound off is Radio with the
sound off." -- Dave Moon


From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, david(at)fetter(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-08 23:27:18
Message-ID: 49DD32D6.4070608@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tom,

> Like what? I do not actually believe that anyone needs an
> interactive geographical timezone selector based on
> pg_timezone_names.

Actually, considering that PostgreSQL is the leading open source GIS
database, I expect that a *lot* of people want this. Or, at least,
enough data to ad-hoc something themselves.

--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org, david(at)fetter(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-10 19:01:05
Message-ID: 28636.1239390065@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> Tom,
>> Like what? I do not actually believe that anyone needs an
>> interactive geographical timezone selector based on
>> pg_timezone_names.

> Actually, considering that PostgreSQL is the leading open source GIS
> database, I expect that a *lot* of people want this.

Surely we'd have seen more complaints, then.

regards, tom lane


From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-10 19:12:06
Message-ID: 20090410191206.GC23155@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Apr 10, 2009 at 03:01:05PM -0400, Tom Lane wrote:
> Josh Berkus <josh(at)agliodbs(dot)com> writes:
> > Tom,
> >> Like what? I do not actually believe that anyone needs an
> >> interactive geographical timezone selector based on
> >> pg_timezone_names.
>
> > Actually, considering that PostgreSQL is the leading open source
> > GIS database, I expect that a *lot* of people want this.
>
> Surely we'd have seen more complaints, then.

You're setting a pretty high bar here for a pretty small change which
will cause a pretty large increase in convenience. What is the actual
problem here?

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-10 19:15:38
Message-ID: 28935.1239390938@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

David Fetter <david(at)fetter(dot)org> writes:
> You're setting a pretty high bar here for a pretty small change which
> will cause a pretty large increase in convenience. What is the actual
> problem here?

I gave my reasoning before: widening this API has possibly nontrivial
future maintenance costs, and the actual use-case for the data is
unconvincing.

regards, tom lane


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org, david(at)fetter(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-10 19:17:43
Message-ID: 603c8f070904101217j59b28a0am18555e065cebb2e9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Fri, Apr 10, 2009 at 3:01 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Josh Berkus <josh(at)agliodbs(dot)com> writes:
>> Tom,
>>> Like what?  I do not actually believe that anyone needs an
>>> interactive geographical timezone selector based on
>>> pg_timezone_names.
>
>> Actually, considering that PostgreSQL is the leading open source GIS
>> database, I expect that a *lot* of people want this.
>
> Surely we'd have seen more complaints, then.

This idea is at least +5 just on this thread; more significant changes
have been made with less support.

...Robert


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: David Fetter <david(at)fetter(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-10 20:31:51
Message-ID: 6806D597-266D-468C-B505-B994462FD0B0@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Apr 10, 2009, at 12:15 PM, Tom Lane wrote:

> I gave my reasoning before: widening this API has possibly nontrivial
> future maintenance costs, and the actual use-case for the data is
> unconvincing.

It seems to me that the immediate patch to simply copy zone.tab has no
effect on the API. That's a debate worth having, but I don't think
it's relevant to this particular patch, is it?

Best,

David


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: David Fetter <david(at)fetter(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A renewed plea for inclusion of zone.tab
Date: 2009-04-10 21:35:07
Message-ID: 1662.1239399307@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> On Apr 10, 2009, at 12:15 PM, Tom Lane wrote:
>> I gave my reasoning before: widening this API has possibly nontrivial
>> future maintenance costs, and the actual use-case for the data is
>> unconvincing.

> It seems to me that the immediate patch to simply copy zone.tab has no
> effect on the API. That's a debate worth having, but I don't think
> it's relevant to this particular patch, is it?

Well, as far as I can see the immediate patch is pretty useless without
an API change in front of it. Andrew was threatening to write a
pgfoundry module that read from the file directly, but considering that
such a thing would require superuser privileges it doesn't seem like a
particularly attractive answer.

The immediate patch has other bogosities too: why not iso3166.tab too,
if we are going to start exposing this data? Without an agreed-on API
change we don't really know what we need or why.

regards, tom lane