Re: patch: make_timestamp function

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: patch: make_timestamp function
Дата
Msg-id 20131217173301.GE19059@momjian.us
обсуждение исходный текст
Ответ на Re: patch: make_timestamp function  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: patch: make_timestamp function
Список pgsql-hackers
On Tue, Dec 17, 2013 at 06:07:38PM +0100, Pavel Stehule wrote:
> Hello
> 
> 
> 2013/12/17 Pavel Stehule <pavel.stehule@gmail.com>
> 
> 
> 
> 
>     2013/12/17 Tom Lane <tgl@sss.pgh.pa.us>
> 
>         Alvaro Herrera <alvherre@2ndquadrant.com> writes:
>         > Yeah, I think a constructor should allow a text timezone.
> 
>         Yes.  I think a numeric timezone parameter is about 99% useless,
>         and if you do happen to need that behavior you can just cast the
>         numeric to text no?
> 
> 
>     yes, it is possible. Although fully numeric API is much more consistent.
> 
> 
> 
> I was wrong - there are timezones with minutes like Iran = '1:30';
> 
> so int in hours is bad type - so only text is probably best

I think India is the big non-integer timezone offset country:
http://www.timeanddate.com/worldclock/city.html?n=176UTC/GMT +5:30 hours

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: planner missing a trick for foreign tables w/OR conditions
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: pg_rewarm status