Re: Comment on timezone and interval types
От | Thomas Hallgren |
---|---|
Тема | Re: Comment on timezone and interval types |
Дата | |
Msg-id | 417F47AA.1040106@mailblocks.com обсуждение исходный текст |
Ответ на | Re: Comment on timezone and interval types (Martijn van Oosterhout <kleptog@svana.org>) |
Ответы |
Re: Comment on timezone and interval types
|
Список | pgsql-general |
Martijn, > I agree. One issue I can think of is that if you store each timestamp > as a (seconds,timezone) pair, the storage requirements will balloon, > since timezone can be something like "Australia/Sydney" and this will > be repeated for every value in the table. I don't know how to deal > easily with this since there is no unique identifier to timezones and > no implicit order. > > The only solution I can think of is have initdb create a pg_timezones > table which assigns an OID to each timezone it finds. Then the type can > use that. > > I think this is a good solution actually, any thoughts? Using OID's is a good idea, but I think a canonical list of known timezone to OID mappings must be maintained and shipped with the PostgreSQL core. If OID's are generated at initdb time, there's a great risk that the OID's will differ between databases using different versions of PostgreSQL. That in turn will have some negative implications for data exchange. Regards, Thomas Hallgren
В списке pgsql-general по дате отправления: