Re: FW: Re: Part 1 of several - Converting a varchar to an interval

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: aklaver(at)comcast(dot)net (Adrian Klaver)
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: FW: Re: Part 1 of several - Converting a varchar to an interval
Date: 2008-03-26 18:14:35
Message-ID: 906.1206555275@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

aklaver(at)comcast(dot)net (Adrian Klaver) writes:
> Select 134987 * interval '1 msec';
> ERROR: invalid input syntax for type interval: "1 msec"

> SELECT version();
> version
> ------------------------------------------------------------------------------------------------
> PostgreSQL 8.2.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

8.2.3 is your problem --- this is fixed in 8.2.5 and up:
http://archives.postgresql.org/pgsql-committers/2007-05/msg00345.php

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Matthew T. O'Connor 2008-03-26 18:19:30 Finding all References to a Primary Key
Previous Message Conlon, Joseph F SIK 2008-03-26 17:55:44 Bizarre sort order