Re: INTERVAL SECOND limited to 59 seconds?

Поиск
Список
Период
Сортировка
Искать
От
Richard Huxton
Тема
Re: INTERVAL SECOND limited to 59 seconds?
Дата
в 06:57:34
Msg-id
4A128288.8090304@archonet.com
Список
Дерево обсуждения
INTERVAL SECOND limited to 59 seconds? Sebastien FLAESCH <sf@4js.com>
Re: INTERVAL SECOND limited to 59 seconds? Tom Lane <tgl@sss.pgh.pa.us>
Re: INTERVAL SECOND limited to 59 seconds? Sebastien FLAESCH <sf@4js.com>
Re: INTERVAL SECOND limited to 59 seconds? Richard Huxton <dev@archonet.com>
Re: INTERVAL SECOND limited to 59 seconds? Sebastien FLAESCH <sf@4js.com>
Re: INTERVAL SECOND limited to 59 seconds? Richard Huxton <dev@archonet.com>
Re: INTERVAL SECOND limited to 59 seconds? Sebastien FLAESCH <sf@4js.com>
Re: INTERVAL SECOND limited to 59 seconds? Scott Bailey <artacus@comcast.net>
Re: INTERVAL SECOND limited to 59 seconds? Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: INTERVAL SECOND limited to 59 seconds? Tom Lane <tgl@sss.pgh.pa.us>
Re: INTERVAL SECOND limited to 59 seconds? Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: INTERVAL SECOND limited to 59 seconds? Tom Lane <tgl@sss.pgh.pa.us>
Re: INTERVAL SECOND limited to 59 seconds? Tom Lane <tgl@sss.pgh.pa.us>
Re: INTERVAL SECOND limited to 59 seconds? Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: INTERVAL SECOND limited to 59 seconds? Tom Lane <tgl@sss.pgh.pa.us>
Re: INTERVAL SECOND limited to 59 seconds? Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: INTERVAL SECOND limited to 59 seconds? Sebastien FLAESCH <sf@4js.com>
Sebastien FLAESCH wrote:
> Actually it's not limited to the usage of INTERVAL SECOND, I am writing
> a PostgreSQL driver for our 4GL virtual machine...
> 
> I need to store all possible Informix INTERVAL types such as:
> 
>    INTERVAL MONTH(8) TO MONTH
>    INTERVAL DAY(8) TO MINUTE
>    INTERVAL SECOND TO FRACTION(5)
>    ... etc ...
> 
> ...
> 
> If PostgreSQL is not able to store months > 11, hours > 23 and minutes
> or seconds > 59

Well, it's not storage it's formatting. Doesn't make any difference to 
your problem though.

 >, it looks like I will need to deal with PostgreSQL's
> 
>    INTERVAL YEAR TO MONTH
>    INTERVAL DAY TO SECOND(5)
> 
> ... and make conversions, to store all possible Informix INTERVALs...

If you know a little "C" you could build some custom types to match your 
needs. It should just be a matter of applying the correct formatting as 
a wrapper around the existing "interval" type.

-- 
   Richard Huxton
   Archonet Ltd
В списке pgsql-general по дате отправления
От: Sebastien FLAESCH
Дата:
От: Sam Mason
Дата:
FAQ