pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedLOCK has IGNORED on trigger.
3+ messages / 3 participants
[nested] [flat]
* LOCK has IGNORED on trigger.
@ 2003-09-04 06:59 Yudha Setiawan <yudha@bonbon.net>
2003-09-04 15:50 ` Re: LOCK has IGNORED on trigger. Stephan Szabo <sszabo@megazone.bigpanda.com>
2003-09-05 13:30 ` Re: LOCK has IGNORED on trigger. Bruno Wolff III <bruno@wolff.to>
0 siblings, 2 replies; 3+ messages in thread
From: Yudha Setiawan @ 2003-09-04 06:59 UTC (permalink / raw)
To: pgsql-admin
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...
GOD Bless You All and Bravo Postgre
-----------------------------------
Yudha Setiawan.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: LOCK has IGNORED on trigger.
2003-09-04 06:59 LOCK has IGNORED on trigger. Yudha Setiawan <yudha@bonbon.net>
@ 2003-09-04 15:50 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
1 sibling, 0 replies; 3+ messages in thread
From: Stephan Szabo @ 2003-09-04 15:50 UTC (permalink / raw)
To: Yudha Setiawan <yudha@bonbon.net>; +Cc: pgsql-admin
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: LOCK has IGNORED on trigger.
2003-09-04 06:59 LOCK has IGNORED on trigger. Yudha Setiawan <yudha@bonbon.net>
@ 2003-09-05 13:30 ` Bruno Wolff III <bruno@wolff.to>
1 sibling, 0 replies; 3+ messages in thread
From: Bruno Wolff III @ 2003-09-05 13:30 UTC (permalink / raw)
To: Yudha Setiawan <yudha@bonbon.net>; +Cc: pgsql-admin
On Thu, Sep 04, 2003 at 13:59:21 +0700,
Yudha Setiawan <yudha@bonbon.net> 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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-09-05 13:30 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04 06:59 LOCK has IGNORED on trigger. Yudha Setiawan <yudha@bonbon.net>
2003-09-04 15:50 ` Stephan Szabo <sszabo@megazone.bigpanda.com>
2003-09-05 13:30 ` Bruno Wolff III <bruno@wolff.to>
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