Re: [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Rod Taylor <rbt(at)zort(dot)ca>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Date: 2002-08-29 02:16:35
Message-ID: 1030587397.1287.25.camel@lerlaptop.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

On Wed, 2002-08-28 at 21:29, Robert Treat wrote:

>
> I think after the LIMIT and FOR UPDATE explanations (but before the note about
> SELECT privilege) you could add a note that "for backwards compatibility
> reasons the LIMIT and FOR UPDATE clauses are interchangeable" though maybe
> interchangeable isn't the best word...
How about "for backwards compatibility reasons the LIMIT and FOR UPDATE
clauses can appear in either order, I.E. LIMIT 1 FOR UPDATE and FOR
UPDATE LIMIT 1 are equivalent".

>
> > For COPY, we could just put the old syntax at the bottom of the manual
> > page and mention it is depricated.
>
> In both cases I don't know that a detailed explination is needed, but a
> mention of the different possibility and perhaps a suggestion to look at an
> old version of the docs for complete details should go a long way.
I suspect that Bruce's suggestion is best, modulo a spell check :-).
>
> Robert Treat
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Rod Taylor 2002-08-29 02:18:07 Re: [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Previous Message Christopher Kings-Lynne 2002-08-29 02:12:05 Serious problem with my postgres

Browse pgsql-sql by date

  From Date Subject
Next Message Rod Taylor 2002-08-29 02:18:07 Re: [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Previous Message Bruce Momjian 2002-08-29 01:14:16 Re: [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?