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

From Bruce Momjian
Subject Re: [HACKERS] Syntax of LOCK TABLE ...
Date
Msg-id 199905151826.OAA15807@candle.pha.pa.us
Whole thread Raw
In response to Syntax of LOCK TABLE ...  (David Sauer <davids@orfinet.cz>)
List pgsql-hackers
> Hello,
> 
>  I'am trying CVS snapshor of postgres and on web page (new features of
> postgres 6.5) is:
> 
> [...]
>    New LOCK TABLE IN ... MODE(Vadim)
> [...]
> 
>   I'am using similar statement on Oracle. But postgres doesn't accept
> keyword 'IN'. 
> 
> Example:
> 
> => 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 ?

Works here:
test=> lock table pg_class IN row share mode;LOCK TABLE

--  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,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: David Sauer
Date:
Subject: Syntax of LOCK TABLE ...
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] v6.5 release ToDo