X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A3727D1B89F for ; Fri, 5 Sep 2003 13:24:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 35052-09 for ; Fri, 5 Sep 2003 10:24:00 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 1DDAED1B8B0 for ; Fri, 5 Sep 2003 10:23:56 -0300 (ADT) Received: (qmail 11726 invoked by uid 500); 5 Sep 2003 13:30:14 -0000 Date: Fri, 5 Sep 2003 08:30:14 -0500 From: Bruno Wolff III To: Yudha Setiawan Cc: pgsql-admin@postgresql.org Subject: Re: LOCK has IGNORED on trigger. Message-ID: <20030905133014.GA11657@wolff.to> Mail-Followup-To: Yudha Setiawan , pgsql-admin@postgresql.org References: <03be01c372b7$ae0bb3d0$ea00a8c0@yudha> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03be01c372b7$ae0bb3d0$ea00a8c0@yudha> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/106 X-Sequence-Number: 10194 On Thu, Sep 04, 2003 at 13:59:21 +0700, Yudha Setiawan wrote: > Dear Expert, > I got a trouble with LOCK on my table (Inquery table). > I've put the LOCK (using select bla.bla for update) > on trigger(trigger insert) of Table_A. It's work properly. > when i tried "insert into Table_A bla.bla.bla" with more > than 5 user in same time > > But when i put the "Insert into Table_A" command on > the other trigger's table. That's LOCK is ignored. A select for update isn't going to block an insert. If you need that, you have to lock the whole table.