to_timestamp() and quarters

Поиск
Список
Период
Сортировка
От Asher Hoskins
Тема to_timestamp() and quarters
Дата
Msg-id 4B8CECA7.2060301@piceur.co.uk
обсуждение исходный текст
Ответы Re: to_timestamp() and quarters  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello.

I can't seem to get to_timestamp() or to_date() to work with quarters,
can anyone see what I'm doing wrong?

e.g.
    select to_date('2010-1', 'YYYY-Q');
    Gives "2010-01-01" (correct).

    select to_date('2010-3', 'YYYY-Q');
    Also gives "2010-01-01" (should be 2010-07-01);

Am I misunderstanding how this function works? EXTRACT(QUARTER FROM
date) works fine.

I'm running Postgresql 8.4.2 on a FreeBSD system.


Thanks,
Asher.

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Hung postmaster (8.3.9)
Следующее
От: Antonio Goméz Soto
Дата:
Сообщение: How to grant a user read-only access to a database?