Re: Query about time zone patterns in to_char - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: Query about time zone patterns in to_char
Date
Msg-id ca52b589-4334-0193-2ba5-1e2b5ff005b2@enterprisedb.com
Whole thread Raw
In response to Re: Query about time zone patterns in to_char  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Query about time zone patterns in to_char  (David Zhang <david.zhang@highgo.ca>)
Re: Query about time zone patterns in to_char  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers

On 5/20/21 8:25 PM, Bruce Momjian wrote:
> On Thu, May 20, 2021 at 12:21:12PM +0530, Nitin Jadhav wrote:
>> Thanks Suraj for reviewing the patch.
>>
>>> 1:
>>> +RESET timezone;
>>> +
>>> +
>>> CREATE TABLE TIMESTAMPTZ_TST (a int , b timestamptz);
>>>
>>> Extra line.
>>>
>>> 2:
>>> +SET timezone = '00:00';
>>> +SELECT to_char(now(), 'of') as "Of", to_char(now(), 'tzh:tzm') as "tzh:tzm";
>>
>> I have fixed these comments.
>>
>>> I am not sure whether we should backport this or not but I don't see any
>> issues with back-patching.
> 
> Only significant fixes are backpatched, not features.
> 

Yeah, does not seem to be worth it, as there seem to be no actual
reports of issues in the field.

FWIW there seem to be quite a bit of other to_char differences compared
to Oracle (judging by docs and playing with sqlfiddle). But the patch
seems fine / simple enough and non-problematic, so perhaps let's just
get it committed?


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Preventing abort() and exit() calls in libpq
Next
From: Domingo Alvarez Duarte
Date:
Subject: Re: Grammar railroad diagram