Re: Timestamp to time_t

Поиск
Список
Период
Сортировка
Искать
От
David E. Wheeler
Тема
Re: Timestamp to time_t
Дата
Msg-id
57856C2B-4524-4FB2-9D1B-B06A4E8A0666@kineticode.com
Ответ на
Re: Timestamp to time_t (Andrew Gierth)
Список
Дерево обсуждения
Timestamp to time_t Scott Mohekey <scott.mohekey@telogis.com>
Re: Timestamp to time_t "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Timestamp to time_t Scott Mohekey <scott.mohekey@telogis.com>
Re: Timestamp to time_t "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Timestamp to time_t David Fetter <david@fetter.org>
Re: Timestamp to time_t Tom Lane <tgl@sss.pgh.pa.us>
Re: Timestamp to time_t David Fetter <david@fetter.org>
Re: Timestamp to time_t Tom Lane <tgl@sss.pgh.pa.us>
Re: Timestamp to time_t "David E. Wheeler" <david@kineticode.com>
Re: Timestamp to time_t Tom Lane <tgl@sss.pgh.pa.us>
Re: Timestamp to time_t "David E. Wheeler" <david@kineticode.com>
Re: Timestamp to time_t Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Timestamp to time_t "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Timestamp to time_t Tom Lane <tgl@sss.pgh.pa.us>
Re: Timestamp to time_t "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Timestamp to time_t Andrew Dunstan <andrew@dunslane.net>
Re: Timestamp to time_t Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Timestamp to time_t "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Timestamp to time_t "David E. Wheeler" <david@kineticode.com>
Re: Timestamp to time_t Scott Mohekey <scott.mohekey@telogis.com>
On Sep 15, 2009, at 11:01 AM, Andrew Gierth wrote:

> If you want to store both a timestamp and an associated timezone you  
> can do
> it right now, using a composite type or two columns, with the  
> advantage that
> you get semantics that you can rely on.

How would a composite work in practice? Can you index it on the  
timestamp? Or would you have to use two columns for that?

I could see a real advantage to a type that stored the TZ with which  
it was created, with the ability to fetch it back out. Internally the  
data could be stored just like it is with timestamptz, and by default,  
perhaps, it would display in $PGTZ, but if $PGTZ was set to a value  
like "original" or something, it should display the originals. Now  
*that* would be really useful IMHO.

Best,

David

В списке pgsql-hackers по дате отправления
От: David Fetter
Дата:
От: Kevin Grittner
Дата:
FAQ