Re: to_char_at_timezone()? - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: to_char_at_timezone()?
Date
Msg-id 545A6EF3.8010008@joh.to
Whole thread Raw
In response to Re: to_char_at_timezone()?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
On 11/5/14, 7:36 PM, Josh Berkus wrote:
> On 11/04/2014 04:04 PM, Marko Tiikkaja wrote:
>> In my example, the input is a "timestamptz", and the output is converted
>> to the target time zone the same way timestamptz_out() does, except
>> based on the input timezone instead of TimeZone.
>>
>> Not sure whether it would make sense to do this for "timestamp", or
>> whether there's even a clear intuitive behaviour there.
>
> Why wouldn't we just add the timezone as an additional parameter?

Are you suggesting that we add a new overload of to_char() instead of a 
new function to_char_at_timezone()?  That sounds a bit confusing, but 
that might just be me.


.marko



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: to_char_at_timezone()?
Next
From: Jim Nasby
Date:
Subject: Re: pg_multixact not getting truncated