pgsql: Avoid retaining multiple relation locks in RangeVarGetRelid.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid retaining multiple relation locks in RangeVarGetRelid.
Date: 2011-11-12 06:23:29
Message-ID: E1RP6zx-0004C8-QG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid retaining multiple relation locks in RangeVarGetRelid.

If it turns out we've locked the wrong OID, release the old lock. In
most cases, it's pretty harmless to retain the extra lock, but this
seems tidier and avoids using lock table slots unnecessarily.

Per discussion with Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aa3299f25601c1a27e52c1c49e92b7f11441e76b

Modified Files
--------------
src/backend/catalog/namespace.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-11-12 15:07:01 pgsql: Add psql expanded auto mode
Previous Message Robert Haas 2011-11-12 04:34:18 pgsql: Fix psql's \dd version check for operator families.