Re: LOCK has IGNORED on trigger. - Mailing list pgsql-admin

From Bruno Wolff III
Subject Re: LOCK has IGNORED on trigger.
Date
Msg-id 20030905133014.GA11657@wolff.to
Whole thread Raw
In response to LOCK has IGNORED on trigger.  ("Yudha Setiawan" <yudha@bonbon.net>)
List 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.

pgsql-admin by date:

Previous
From: "shreedhar"
Date:
Subject: Re: [GENERAL] How can I set postmaster as a service
Next
From: Rodrigo De la Peña
Date:
Subject: unsubscribe