Re: [GENERAL] Is "OFFSET" a reserved word? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] Is "OFFSET" a reserved word?
Date
Msg-id 199907301810.OAA02189@candle.pha.pa.us
Whole thread Raw
In response to Is "OFFSET" a reserved word?  (Mark Dalphin <mdalphin@amgen.com>)
List pgsql-general
> Hi,
>
> My old DB schema which worked up thru Postgresql ver 6.4.2 has been broken in
> ver 6.5.1 (running on an SGI).
>
> CREATE TABLE Seq (
>     .....
>     Offset int not null,
>     ....
> );
>
> now fails with a parse error at 'offset'. I don't see this word listed in the
> reserved words page. When I change the word to SeqOffset, the schema works fine.

Yes, now OFFSET is reserved:

SELECT * FROM tab LIMIT 100 OFFSET 3

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Mark Dalphin
Date:
Subject: Is "OFFSET" a reserved word?
Next
From: Dmitry Popov
Date:
Subject: Search