pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Yudha Setiawan <yudha@bonbon.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: LOCK has IGNORED on trigger.
Date: Fri, 5 Sep 2003 08:30:14 -0500
Message-ID: <20030905133014.GA11657@wolff.to> (raw)
In-Reply-To: <03be01c372b7$ae0bb3d0$ea00a8c0@yudha>
References: <03be01c372b7$ae0bb3d0$ea00a8c0@yudha>

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.



view thread (3+ messages)

Message-ID: <20030905133014.GA11657@wolff.to>
Permalink:  ../20030905133014.GA11657@wolff.to/
Also on:    postgresql.org/message-id/20030905133014.GA11657@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno@wolff.to, yudha@bonbon.net
  Subject: Re: LOCK has IGNORED on trigger.
  In-Reply-To: <20030905133014.GA11657@wolff.to>
  References: <03be01c372b7$ae0bb3d0$ea00a8c0@yudha> <20030905133014.GA11657@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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