Re: timestamp bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: timestamp bug?
Date: 2003-07-17 22:30:30
Message-ID: 15473.1058481030@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> writes:
> Shouldn't we be detecting problems with the following (haven't seen
> mention of it):
> template1=# insert into b values('10000000-12-01 23:23:23');
> INSERT 555183 1
> template1=# select * from b;
> ERROR: Unable to format timestamp; internal coding error

Okay, now I get

regression=# select '10000000-12-01 23:23:23'::timestamp;
ERROR: TIMESTAMP out of range '10000000-12-01 23:23:23'
regression=# select '10000000-12-01 23:23:23'::timestamptz;
ERROR: TIMESTAMP WITH TIME ZONE out of range '10000000-12-01 23:23:23'

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2003-07-18 01:50:08 Re: Archives
Previous Message Bruce Momjian 2003-07-17 21:21:48 I am back