Re: API bug in DetermineTimeZoneOffset() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: API bug in DetermineTimeZoneOffset()
Date
Msg-id 11059.1383317427@sss.pgh.pa.us
Whole thread Raw
In response to Re: API bug in DetermineTimeZoneOffset()  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: API bug in DetermineTimeZoneOffset()
List pgsql-hackers
I wrote:
> The second attached patch, to be applied after the first, removes the
> existing checks of HasCTZSet in the backend.  The only visible effect of
> this, AFAICT, is that to_char's TZ format spec now delivers something
> useful instead of an empty string when a brute-force timezone is in use.
> I could be persuaded either way as to whether to back-patch this part.
> From one standpoint, this to_char behavioral change is clearly a bug fix
> --- but it's barely possible that somebody out there thought that
> returning an empty string for TZ was actually the intended/desirable
> behavior.

Any opinions about whether to back-patch this part or not?  It seems
like a bug fix, but on the other hand, I don't recall any complaints
from the field about to_char's TZ spec not working with brute-force zones.
So maybe the prudent thing is to leave well enough alone.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Save Hash Indexes
Next
From: Atri Sharma
Date:
Subject: Re: Save Hash Indexes