Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B6D21475AE6 for ; Mon, 23 Dec 2002 14:32:11 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 037C0475AFA for ; Mon, 23 Dec 2002 14:32:11 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gBNJVld0007204; Mon, 23 Dec 2002 14:31:47 -0500 (EST) To: a.schmitz@cityweb.de Cc: Simone Tellini , pgsql-admin@postgresql.org 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> Comments: In-reply-to Andreas Schmitz message dated "Mon, 23 Dec 2002 19:04:09 +0100" Date: Mon, 23 Dec 2002 14:31:47 -0500 Message-ID: <7203.1040671907@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/281 X-Sequence-Number: 6776 Andreas Schmitz writes: > Maybe I have a different idea of exclusive. Locks are held till the end of the current transaction ... so you need something like begin; lock ...; do whatever ...; commit; to do anything useful with an explicit lock. A standalone LOCK command will drop the lock as soon as it's acquired. regards, tom lane