Re: Analysis Function

Поиск
Список
Период
Сортировка
От David Jarvis
Тема Re: Analysis Function
Дата
Msg-id AANLkTinUYpgGbtwYvaf01_-6QW6CTxEjaJmceVZg7_wX@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Analysis Function  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Analysis Function  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-performance
Hi,

It's not immediately obvious what the default value of "timezone"
will be?

The system's locale, like now(); documentation can clarify.

By named parameter, I meant default value. You could construct a timestamp variable using:

  construct_timestamp( year := 1900, hour := 1 )

When I read that code, the first thing I think it should return is:

  1900-01-01 01:00:00.0000-07

I agree construct_timestamp( hour := 1 ) and construct_date() are errors: year is required.

Dave

P.S.
I prefer to_timestamp and to_date over the more verbose construct_timestamp.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Analysis Function
Следующее
От: Kenichiro Tanaka
Дата:
Сообщение: Re: out of memory