Re: Reducing lock strength of adding foreign keys

From: adamrose045 <adamrose045(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Reducing lock strength of adding foreign keys
Date: 2014-10-27 08:44:23
Message-ID: 1414399463845-5824376.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

There are actually TWO tables involved: the table upon which
the trigger will actually fire, and some other table which is
mentioned in passing in the trigger definition. It's possible that
the locking requirements for the secondary table are weaker since I
don't think the presence of the trigger actually affects runtime
behavior there. However, there's probably little point in try to
weaken the lock to less than the level required for the main table
because a foreign key involves adding referential integrity triggers
to both tables.

-----
GUL
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Reducing-lock-strength-of-adding-foreign-keys-tp5823894p5824376.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2014-10-27 09:15:57 Re: Function array_agg(array)
Previous Message Amit Langote 2014-10-27 07:52:27 Re: On partitioning