Re: time without time zone

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: time without time zone
Дата
Msg-id 2206.1182197736@sss.pgh.pa.us
обсуждение исходный текст
Ответ на time without time zone  (Garry Saddington <garry@schoolteachers.co.uk>)
Ответы Re: time without time zone  (Garry Saddington <garry@schoolteachers.co.uk>)
Список pgsql-general
Garry Saddington <garry@schoolteachers.co.uk> writes:
> Can anyone explain why time has todays date and time zone?

Works for me:

regression=# insert into periods values(1,1,'now','now');
INSERT 0 1
regression=# select * from periods;
 periodid | periodnumber |  periodstart   |   periodend
----------+--------------+----------------+----------------
        1 |            1 | 16:13:14.35962 | 16:13:14.35962
(1 row)

I speculate that you are trying to display the table in some client
software that doesn't know the time datatype and is forcibly converting
it to something it does know.

            regards, tom lane

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: time without time zone
Следующее
От: Tom Lane
Дата:
Сообщение: Re: unexpected shutdown