Re: foreign key locks
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2012-08-25T01:51:13Z
Lists: pgsql-hackers
On Wed, Aug 22, 2012 at 5:31 PM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote: > Patch v19 contains some tweaks. Most notably, > > 1. if an Xid requests a lock A, and then a lock B which is stronger than > A, then record only lock B and forget lock A. This is important for > performance, because EvalPlanQual obtains ForUpdate locks on the tuples > that it chases on an update chain. If EPQ was called by an update or > delete, previously a MultiXact was being created. > > In a stock pgbench run this was causing lots of multis to be created, > even when there are no FKs. > > This was most likely involved in the 9% performance decrease that was > previously reported. Ah-ha! Neat. I'll try to find some time to re-benchmark this during the next CF, unless you did that already. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix memory leaks in record_out() and record_send().
- 273986bf0d39 9.3.0 cited