Re: question about age()

Поиск
Список
Период
Сортировка
От Michael Nolan
Тема Re: question about age()
Дата
Msg-id CAOzAqu+1MN7y+Uvk2N7SUcpowSZ0RUBPrG6qDe86X3P6mYGGmQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: question about age()  (Michael Nolan <htfoot@gmail.com>)
Список pgsql-general
On 8/29/13, Michael Nolan <htfoot@gmail.com> wrote:
> On 8/29/13, Andreas Kretschmer <akretschmer@spamfence.net> wrote:
>
>> I'm using 9.2.4.
>
>
> What is the content of the field 'birthday''?  My guess is there's a
> null value for the field, in which case you are comparing two nulls.

Oops, missed seeing the first half of the post with the data.

It may be a function output type issue.  Modifying the query as
follows works (in 8.2, which I'm still stuck on):

select * from birthday where age(birthday)::text != age
(current_date-1, birthday)::text;
--
Mike Nolan


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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Is there any method to limit resource usage in PG?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: question about age()