]> granicus.if.org Git - postgresql/commit
Don't try to use a unopened relation
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 7 Nov 2012 19:23:39 +0000 (16:23 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 7 Nov 2012 19:24:20 +0000 (16:24 -0300)
commit9eb80f2ca75a205949df7dc86019d99fe076eb87
tree00e3ef162ed6ae0636af4d54a31c66a9d7186ff9
parent663c68f0e94ec6d4d4f75edcbd3d5c3dec4478fd
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.
src/backend/catalog/index.c