Re: to_char() causes backend to close connection

Поиск
Список
Период
Сортировка
От Kovacs Zoltan Sandor
Тема Re: to_char() causes backend to close connection
Дата
Msg-id Pine.LNX.4.05.10012141645090.9225-100000@pc10.radnoti-szeged.sulinet.hu
обсуждение исходный текст
Ответ на Re: to_char() causes backend to close connection  (Karel Zak <zakkr@zf.jcu.cz>)
Список pgsql-sql
>  A problem (IMHO it's not problem) with 'now()::abstime' is in 7.1 too. 
> But why you not use directly now()?
My aim is to get this format for the time '5 minutes ago'. So I need
something like

select to_char(now()-'5 minutes','YYMMDDHH24MI')

but this doesn't work due to the missing type conversion.

Any idea? TIA, Zoltan



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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: How to represent a tree-structure in a relational database
Следующее
От: "Trewern, Ben"
Дата:
Сообщение: RE: to_char() causes backend to close connection