Re: locking a table - Mailing list pgsql-admin

From Andreas Schmitz
Subject Re: locking a table
Date
Msg-id 200212231904.09508.a.schmitz@cityweb.de
Whole thread Raw
In response to Re: locking a table  (Simone Tellini <tellini@areabusiness.it>)
Responses Re: locking a table
List pgsql-admin
On Monday 23 December 2002 18:35, Simone Tellini wrote:
> On Mon, 23 Dec 2002 18:02:24 +0100
> Andreas Schmitz <a.schmitz@cityweb.de> wrote:
>
> AS> LOCK [ TABLE ] name [, ...] IN lockmode MODE
> [...]
> AS> newsdb=# lock table dpa in lockmode 'exclusive';
> AS> ERROR:  parser: parse error at or near "lockmode" at character 19
>
> you might want to try "lock dpa in exclusive mode;"

Hi,

newsdb3=# lock dpa in exclusive mode;

that one worked without errors. connecting as a normal user

 psql -U dbimport newsdb3

and doing a

newsdb3=> select id from dpa limit 5;
   id
--------
  73424
  73430
  69445
  73431
 109217
(5 rows)

Maybe I have a different idea of exclusive.

kind regards

-andreas

--
Andreas Schmitz - Phone +49 201 8501 318
Cityweb-Technik-Service-Gesellschaft mbH
Friedrichstr. 12 - Fax +49 201 8501 104
45128 Essen - email a.schmitz@cityweb.de


pgsql-admin by date:

Previous
From: Andreas Schmitz
Date:
Subject: Re: add space to expand database ?
Next
From: Tom Lane
Date:
Subject: Re: Postgres 7.2.3 hangs during vacuum.