Skip site navigation (1) Skip section navigation (2)

pgsql: Don't try to use a unopened relation

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't try to use a unopened relation
Date: 2012-11-07 19:34:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Don't try to use a unopened relation

Commit 4c9d0901 mistakenly introduced a call to
TransferPredicateLocksToHeapRelation() on an index relation that had
been closed a few lines above.  Moving up an index_open() call that's
below is enough to fix the problem.

Discovered by me while testing an unrelated patch.



Modified Files
src/backend/catalog/index.c |    5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2012-11-07 20:01:28
Subject: pgsql: Add URLs to document why DLLIMPORT is needed on Windows.
Previous:From: Bruce MomjianDate: 2012-11-07 18:36:19
Subject: pgsql: In pg_upgrade docs,mention using base backup as part of rsync f

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group