Re: What is the current status of FOR UPDATE cursors ?

From: Hannu Krosing <hannu(at)krosing(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: What is the current status of FOR UPDATE cursors ?
Date: 2012-05-06 20:55:54
Message-ID: 1336337754.19151.244.camel@hvost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 2012-05-06 at 13:17 -0400, Tom Lane wrote:
> Hannu Krosing <hannu(at)2ndQuadrant(dot)com> writes:
> > What is the current status of FOR UPDATE cursors ?
>
> Same as it's been for a long time: FOR UPDATE [ OF table_name ]
> works fine.

Ok, then it is just documentation fix

currently it is missing from \h declare and docs

hannu(at)hvost:~/work/pg92$ TESTINST/bin/psql -p 9200 -h /tmp
psql (9.2devel)
Type "help" for help.

hannu=# \h declare
Command: DECLARE
Description: define a cursor
Syntax:
DECLARE name [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ]
CURSOR [ { WITH | WITHOUT } HOLD ] FOR query

hannu=#

> > older docs claim that the syntax is supported, but gives an error
> > http://www.postgresql.org/docs/8.2/static/sql-declare.html
>
> Old docs incorrectly said that it was FOR UPDATE [ OF column_name ]
> but we have never implemented it that way.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Albe Laurenz 2012-05-07 07:33:56 Re: smart shutdown at end of transaction (was: Default mode for shutdown)
Previous Message Tom Lane 2012-05-06 17:17:02 Re: What is the current status of FOR UPDATE cursors ?