Re: [HACKERS] Syntax of LOCK TABLE ... - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Syntax of LOCK TABLE ...
Date
Msg-id 373EEED9.C77B2020@krasnet.ru
Whole thread Raw
In response to Re: [HACKERS] Syntax of LOCK TABLE ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] Syntax of LOCK TABLE ...  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> 
> David Sauer <davids@orfinet.cz> writes:
> > => lock table t row share mode;
> > LOCK TABLE
> >  ... this works
> > but:
> > => lock table t IN row share mode;
> > ERROR:  parser: parse error at or near "in"
> >   .... but this not
> 
> > It is mistake in grammar, or is there all OK ?
> 
> I see this behavior too, and a quick look at gram.y shows that indeed
> it is not expecting IN in a LOCK statement.  I do not know whether the
> standard permits (or requires?) the IN keyword, so I don't know whether
> to make the change...

IN is required...

Vadim


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Syntax of LOCK TABLE ...
Next
From: Oleg Bartunov
Date:
Subject: Re: [HACKERS] How good is FreeBSD for postgres ?