Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D6C65475E1E for ; Mon, 23 Dec 2002 13:11:45 -0500 (EST) Received: from linux012.intern.cityweb.de (linux012.intern.cityweb.de [195.71.215.252]) by postgresql.org (Postfix) with ESMTP id E3E52475B85 for ; Mon, 23 Dec 2002 13:10:14 -0500 (EST) Received: from zahedi.intern.cityweb.de (zahedi.intern.cityweb.de [193.189.226.198]) by linux012.intern.cityweb.de (8.11.0/8.11.0) with ESMTP id gBNIADJ14250; Mon, 23 Dec 2002 19:10:13 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Andreas Schmitz Reply-To: a.schmitz@cityweb.de Organization: Cityweb Network To: Simone Tellini , pgsql-admin@postgresql.org Subject: Re: locking a table Date: Mon, 23 Dec 2002 19:04:09 +0100 User-Agent: KMail/1.4.1 References: <200212231802.24128.a.schmitz@cityweb.de> <20021223183309.22AB.TELLINI@areabusiness.it> In-Reply-To: <20021223183309.22AB.TELLINI@areabusiness.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200212231904.09508.a.schmitz@cityweb.de> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/273 X-Sequence-Number: 6768 On Monday 23 December 2002 18:35, Simone Tellini wrote: > On Mon, 23 Dec 2002 18:02:24 +0100 > Andreas Schmitz 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