From: Andreas Schmitz <a.schmitz@cityweb.de>
To: Simone Tellini <tellini@areabusiness.it>
To: pgsql-admin@postgresql.org
Subject: Re: locking a table
Date: Mon, 23 Dec 2002 19:04:09 +0100
Message-ID: <200212231904.09508.a.schmitz@cityweb.de> (raw)
In-Reply-To: <20021223183309.22AB.TELLINI@areabusiness.it>
References: <200212231802.24128.a.schmitz@cityweb.de>
<20021223183309.22AB.TELLINI@areabusiness.it>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: a.schmitz@cityweb.de, tellini@areabusiness.it
Subject: Re: locking a table
In-Reply-To: <200212231904.09508.a.schmitz@cityweb.de>
References: <200212231802.24128.a.schmitz@cityweb.de> <20021223183309.22AB.TELLINI@areabusiness.it> <200212231904.09508.a.schmitz@cityweb.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox