Re: Triggers, again.. ;-)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Phil Endecott <spam_from_postgresql_general(at)chezphil(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Triggers, again.. ;-)
Date: 2005-02-22 17:35:24
Message-ID: 10692.1109093724@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Phil Endecott <spam_from_postgresql_general(at)chezphil(dot)org> writes:
> I would understand this if I were doing an "ALTER TABLE", for example.
> But does adding or removing a trigger really count as "schema-altering"?

[ shrug... ] Hard to say. Probably depends a lot on what the trigger
does. I suppose we could at least reduce the lock from AccessExclusive
to Exclusive, which would allow concurrent readers (since SELECT by
definition doesn't fire any triggers).

No one's really gone through and taken a hard look at whether every
single DDL operation needs the maximum lock ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adelson - Informática 2005-02-22 17:37:21 Store procedure -------------- !!!!!!!!!!!!!! URGENTE """""""""""""""
Previous Message Craig Bryden 2005-02-22 17:32:07 Re: ADO and timestamp/date errors