Re: locking a table

From: Andreas Schmitz <a(dot)schmitz(at)cityweb(dot)de>
To: Simone Tellini <tellini(at)areabusiness(dot)it>, pgsql-admin(at)postgresql(dot)org
Subject: Re: locking a table
Date: 2002-12-23 18:04:09
Message-ID: 200212231904.09508.a.schmitz@cityweb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Monday 23 December 2002 18:35, Simone Tellini wrote:
> On Mon, 23 Dec 2002 18:02:24 +0100
> Andreas Schmitz <a(dot)schmitz(at)cityweb(dot)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(dot)schmitz(at)cityweb(dot)de

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2002-12-23 18:11:13 Re: Postgres 7.2.3 hangs during vacuum.
Previous Message Bruce Momjian 2002-12-23 17:56:46 Re: SSL Mode