Re: [GENERAL] Infinity dates in RoR was How to handle bogus nulls from ActiveRecord

2011-05-17 Thread Craig Ringer
On 18/05/2011 4:02 AM, James B. Byrne wrote: On Fri, May 13, 2011 13:04, James B. Byrne wrote: I have opened an issue for this with the ActiveRecord folks. https://github.com/rails/rails/issues/544 This has been addressed by the AR team and is committed to master. +-Infinity support for da

[GENERAL] Infinity dates in RoR was How to handle bogus nulls from ActiveRecord

2011-05-17 Thread James B. Byrne
On Fri, May 13, 2011 13:04, James B. Byrne wrote: > > I have opened an issue for this with the ActiveRecord folks. > > https://github.com/rails/rails/issues/544 > This has been addressed by the AR team and is committed to master. +-Infinity support for dates is slated for general release with RoR

Re: [GENERAL] 'Infinity' in date columns?

2010-05-17 Thread Ken Winter
> -Original Message- > From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general- > ow...@postgresql.org] On Behalf Of Tom Lane ... > > "Ken Winter" writes: > > The documentation at > > http://www.postgresql.org/docs/8.3/static/datatype-datetime.html seems > to > > say that the spe

Re: [GENERAL] 'Infinity' in date columns?

2010-05-17 Thread Lew
Ken Winter wrote: The documentation at http://www.postgresql.org/docs/8.3/static/datatype-datetime.html seems to say that the special value ‘infinity’ (“later than all other time stamps”) should work for an date-time column, and the type “date” is listed as among the date-time

Re: [GENERAL] 'Infinity' in date columns?

2010-05-16 Thread Tom Lane
"Ken Winter" writes: > The documentation at > http://www.postgresql.org/docs/8.3/static/datatype-datetime.html seems to > say that the special value 'infinity' ("later than all other time stamps") > should work for an date-time column, and the type "date" is listed as among > the date-time data ty

Re: [GENERAL] 'Infinity' in date columns?

2010-05-16 Thread Shoaib Mir
On Mon, May 17, 2010 at 1:17 PM, Ken Winter wrote: > The documentation at > http://www.postgresql.org/docs/8.3/static/datatype-datetime.html seems to > say that the special value ‘infinity’ (“later than all other time stamps”) > should work for an date-time column, and the type “date” is listed

[GENERAL] 'Infinity' in date columns?

2010-05-16 Thread Ken Winter
The documentation at http://www.postgresql.org/docs/8.3/static/datatype-datetime.html seems to say that the special value 'infinity' ("later than all other time stamps") should work for an date-time column, and the type "date" is listed as among the date-time data types. But I can't get 'infini

Re: [GENERAL] infinity interval

2008-12-20 Thread Bruce Momjian
Gerhard Heift wrote: > how can I store an infinity value into an interval? I want to store > offsets to a timestamp, and for some cases i need +infinity and > -infinity as result. > > I want to make something like this: > SELECT now() + 'infinity'::interval; > > This should return 'infinity'::tim

Re: [GENERAL] infinity interval

2008-12-20 Thread Martin Gainty
recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sun, 21 Dec 2008 00:52:04 +0100 > From: ml-postgresql-20081012-3...@gheift.de > To: pgsql-general@postgresql.org > Subject: [GENERAL] infinity interval > > Hello, > > how can I

Re: [GENERAL] infinity interval

2008-12-20 Thread Richard Broersma
On Sat, Dec 20, 2008 at 3:52 PM, Gerhard Heift wrote: > how can I store an infinity value into an interval? I don't think you can: postgres=# select INTERVAL '1 week' + 'infinity'::timestamp; ?column? -- infinity (1 row) postgres=# select INTERVAL 'infinity' + now(); ERROR: invalid

[GENERAL] infinity interval

2008-12-20 Thread Gerhard Heift
Hello, how can I store an infinity value into an interval? I want to store offsets to a timestamp, and for some cases i need +infinity and -infinity as result. I want to make something like this: SELECT now() + 'infinity'::interval; This should return 'infinity'::timestamp. Is it possible? Tha

[GENERAL] infinity

2001-03-15 Thread Thomas F. O'Connell
is there any integer constant for infinity in postgres? i know such beasts exist (with some bugs) in the date/time domain. it would be nice to have an abstraction for numerology as well as chronology... -tfo p.s. i'm not sure this ever _really_ got posted before, since i wasn't subscribed to

[GENERAL] infinity

2001-03-12 Thread Thomas F. O'Connell
is there any integer constant for infinity in postgres? i know such beasts exist (with some bugs) in the date/time domain. it would be nice to have an abstraction for numerology as well as chronology... -tfo ---(end of broadcast)--- TIP 1: subsc