timestamp and datestyles

Поиск
Список
Период
Сортировка
От Edipo Elder Fernandes de Melo
Тема timestamp and datestyles
Дата
Msg-id 20020513132745.128F54760AE@postgresql.org
обсуждение исходный текст
Список pgsql-sql
Hi all, 
   Why this is different? 

--- start with this 
set datestyle = 'iso'; 
show datestyle; 
select current_timestamp::text::timestamp; 
--- now try this 
set datestyle = 'postgres'; 
show datestyle; 
select current_timestamp::text::timestamp; 
   In the first one, I get          timestamptz 
------------------------------- 2002-05-13 10:19:55.158434-03 
   In the last one, I get 
ERROR:  Bad timestamp external representation 'Mon May 13 10:19:56.671847 
2002 BRT' 
   Abracos, 
   Edipo Elder    [edipoelder@ig.com.br] 

_________________________________________________________________________
Voc� podia estar baixando sua musica predileta, enquanto lia esse e-mail.
N�o perca tempo, tenha acesso r�pido a internet com o Super iG.
http://registro.ig.com.br/superig



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

Предыдущее
От: grant
Дата:
Сообщение: Re: [GENERAL] Why very high CPU usage
Следующее
От: Oleg Lebedev
Дата:
Сообщение: pg_dumpall