Re: patch: make_timestamp function

Поиск
Список
Период
Сортировка
Искать
От
Fabrízio de Royes Mello
Тема
Re: patch: make_timestamp function
Дата
Msg-id
CAFcNs+qdibWZLZEYGdgNnDpxGVa2Jt0F_CxRNxkkiAa_6cSAEA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: patch: make_timestamp function Martijn van Oosterhout <kleptog@svana.org>
Re: patch: make_timestamp function Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: patch: make_timestamp function Tom Lane <tgl@sss.pgh.pa.us>
Re: patch: make_timestamp function Andrew Dunstan <andrew@dunslane.net>
Re: patch: make_timestamp function Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: patch: make_timestamp function Jim Nasby <jim@nasby.net>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Jim Nasby <jim@nasby.net>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Alvaro Herrera <alvherre@2ndquadrant.com>
Re: patch: make_timestamp function Tom Lane <tgl@sss.pgh.pa.us>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Bruce Momjian <bruce@momjian.us>
Re: patch: make_timestamp function Michael Weber <mtweber@gmail.com>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Tomas Vondra <tv@fuzzy.cz>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Pavel Stehule <pavel.stehule@gmail.com>
Re: patch: make_timestamp function Fabrízio de Royes Mello <fabriziomello@gmail.com>

On Fri, Dec 13, 2013 at 5:35 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Fabrízio de Royes Mello <fabriziomello@gmail.com> writes:
> > I think the goal of the "make_date/time/timestamp" function series is build
> > a date/time/timestamp from scratch, so the use of 'make_timestamptz' is to
> > build a specific timestamp with timezone and don't convert it.
>
> Yeah; we don't really want to incur an extra timezone rotation just to get
> to a timestamptz.  However, it's not clear to me if make_timestamptz()
> needs to have an explicit zone parameter or not.  It could just assume
> that you meant the active timezone.
>

+1. And if you want a different timezone you can just set the 'timezone' GUC.

Regards,

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Andrew Dunstan
Дата:
FAQ