Re: [GENERAL] Is "OFFSET" a reserved word?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Mark Dalphin <mdalphin(at)amgen(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Is "OFFSET" a reserved word?
Date: 1999-07-30 18:10:00
Message-ID: 199907301810.OAA02189@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Popov 1999-07-31 08:15:18 Search
Previous Message Mark Dalphin 1999-07-30 17:40:54 Is "OFFSET" a reserved word?