From yudha@bonbon.net Thu Sep 4 07:45:32 2003 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 D9F56D1B8B3 for ; Thu, 4 Sep 2003 07:45:32 +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 11013-02 for ; Thu, 4 Sep 2003 04:45:02 -0300 (ADT) Received: from snickers.hotpop.com (snickers.hotpop.com [204.57.55.49]) by svr1.postgresql.org (Postfix) with ESMTP id D5837D1B8EA for ; Thu, 4 Sep 2003 04:44:59 -0300 (ADT) Received: from bonbon.net (kubrick.hotpop.com [204.57.55.16]) by snickers.hotpop.com (Postfix) with SMTP id 0831673D64 for ; Thu, 4 Sep 2003 07:44:40 +0000 (UTC) Received: from yudha (unknown [61.5.113.110]) by smtp-2.hotpop.com (Postfix) with SMTP id AC50F1800B7 for ; Thu, 4 Sep 2003 07:43:11 +0000 (UTC) Message-ID: <03be01c372b7$ae0bb3d0$ea00a8c0@yudha> From: "Yudha Setiawan" To: Subject: LOCK has IGNORED on trigger. Date: Thu, 4 Sep 2003 13:59:21 +0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_03AE_01C372EC.BDCE0630" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=HTML_50_60, HTML_FONT_FACE_ODD, HTML_WITH_BGCOLOR X-Spam-Level: X-Archive-Number: 200309/50 X-Sequence-Number: 10138 This is a multi-part message in MIME format. ------=_NextPart_000_03AE_01C372EC.BDCE0630 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Expert, I got a trouble with LOCK on my table (Inquery table). I've put the LOCK (using select bla.bla for update)=20 on trigger(trigger insert) of Table_A. It's work properly. when i tried "insert into Table_A bla.bla.bla" with more=20 than 5 user in same time Code...fm_In...fm_Out..fm_Balance --------------------------------- * 009 3 0 3 # 001 10 0 10 * 009 10 0 13 # 001 10 0 20 * 009 15 0 28 # 001 0 3 17 # 001 0 1 16 # 001 0 4 12 But when i put the "Insert into Table_A" command on=20 the other trigger's table. That's LOCK is ignored.=20 Somebody help me please... GOD Bless You All and Bravo Postgre ----------------------------------- Yudha Setiawan. ------=_NextPart_000_03AE_01C372EC.BDCE0630 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Expert,
I got a trouble with LOCK on my tab= le=20 (Inquery table).
I've put the LOCK (using select bla.bla = for=20 update)
on trigger(trigger insert) of Table_A. I= t's work=20 properly.
when i tried "insert into Table_A bla.bl= a.bla"=20 with more
than 5 user in same time
 
  =20 Code...fm_In...fm_Out..fm_Balance
  =20 ---------------------------------
*   009   =20 3       0      = =20 3
#  =20 001    10      0 &nb= sp;     10
*   009   =20 10      0      =  13
#   001   =20 10      0      =  20
*   009   =20 15     =20 0       28
#   001   =20 0       3     &= nbsp; 17
#  =20 001    0      =20 1       16
#  =20 001    0       4&nbs= p;      12
 
But when i put the "Insert into Table_A"= command=20 on
the other trigger's table. That's LOCK i= s=20 ignored.
 
Somebody help me please...
 
GOD Bless You All and Bravo Postgre
-----------------------------------
Yudha Setiawan.
 
 
------=_NextPart_000_03AE_01C372EC.BDCE0630-- From sszabo@megazone.bigpanda.com Thu Sep 4 15:51:30 2003 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 466D4D1B9BE for ; Thu, 4 Sep 2003 15:51:30 +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 50886-02 for ; Thu, 4 Sep 2003 12:50:58 -0300 (ADT) Received: from megazone.bigpanda.com (45.mufb.snfc.sffca01r18.dsl.att.net [12.103.249.45]) by svr1.postgresql.org (Postfix) with ESMTP id 154D8D1B574 for ; Thu, 4 Sep 2003 12:50:58 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 34C82D66C; Thu, 4 Sep 2003 08:50:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 246905C04; Thu, 4 Sep 2003 08:50:52 -0700 (PDT) Date: Thu, 4 Sep 2003 08:50:52 -0700 (PDT) From: Stephan Szabo To: Yudha Setiawan Cc: Subject: Re: LOCK has IGNORED on trigger. In-Reply-To: <03be01c372b7$ae0bb3d0$ea00a8c0@yudha> Message-ID: <20030904084956.N37906-100000@megazone.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/64 X-Sequence-Number: 10152 On Thu, 4 Sep 2003, 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 > > Code...fm_In...fm_Out..fm_Balance > --------------------------------- > * 009 3 0 3 > # 001 10 0 10 > * 009 10 0 13 > # 001 10 0 20 > * 009 15 0 28 > # 001 0 3 17 > # 001 0 1 16 > # 001 0 4 12 > > But when i put the "Insert into Table_A" command on > the other trigger's table. That's LOCK is ignored. > > Somebody help me please... You're probably going to need to provide a standalone example since at least I'm not entirely trying to do. From bruno@wolff.to Fri Sep 5 13:24:27 2003 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.