Re: INTERVAL SECOND limited to 59 seconds?

From: Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
To: Sebastien FLAESCH <sf(at)4js(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, mmoncure(at)gmail(dot)com
Subject: Re: INTERVAL SECOND limited to 59 seconds?
Date: 2009-06-07 18:59:14
Message-ID: 4A2C0E02.9070908@cheapcomplexdevices.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Finally got around to looking at this thread.
Looks like the original questions from the thread
got resolved, but I found this behaviour surprising:

regression=# select interval '1' day to second;
interval
----------
@ 1 hour
(1 row)

Should this be 1 second?
If so I can send a patch.

regression=# select version();
version
-----------------------------------------------------------------------------------------------------------
PostgreSQL 8.4beta2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3), 32-bit
(1 row)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-06-07 19:28:30 Re: INTERVAL SECOND limited to 59 seconds?
Previous Message Shakil Shaikh 2009-06-07 18:33:25 Using ANY()

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2009-06-07 19:18:49 Re: pg_migrator issue with contrib
Previous Message Peter Eisentraut 2009-06-07 18:46:49 Re: Managing multiple branches in git