Re: How to store the time zone with a timestamp - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: How to store the time zone with a timestamp
Date
Msg-id 20051216222522.GG11985@svana.org
Whole thread Raw
In response to Re: How to store the time zone with a timestamp  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: How to store the time zone with a timestamp
List pgsql-general
On Fri, Dec 16, 2005 at 03:18:04PM -0600, Jim C. Nasby wrote:
> BTW, if you wanted a more integrated solution, you could build a custom
> type that would store the timestamp info. There's a good chance such
> code would end up being what's used in the server as the official type,
> too.

Well, I wrote a module for storing arbitrary tags with base types. One
of the uses would be for a timestamp that remembers the timezone. I
havn't received all that much feedback on it which leads me to conclude
timestamps-remebering-timezones are not a heavily requested feature.
It's probably on the same level as the ENUM suggested a while ago.
Interesting, but not enough to get it included into core.

http://svana.org/kleptog/pgsql/taggedtypes.html

That said, I'd love for a variation of this to be included since I
beleive it has a lot of applications not thought of yet. If user-types
could define their own typmod values, that'd make it complete.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: Getting a DB password to work without editing pg_hba.conf,
Next
From: vishal saberwal
Date:
Subject: Versioning Schema/Stored Procedures