OSDN Git Service

Fix crash in CREATE UNLOGGED TABLE.
authorRobert Haas <rhaas@postgresql.org>
Fri, 17 Jun 2011 17:34:39 +0000 (13:34 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 17 Jun 2011 17:34:39 +0000 (13:34 -0400)
commitbf347c60bdd7e05800f0c06d03e2ad87aeaa5e09
tree0069b54a0fbe5ecbf41027bdf5a66b9998a8327f
parentc573486ce9752afb9a8431089762d6845cf1429d
Fix crash in CREATE UNLOGGED TABLE.

The code that created the init fork neglected to make sure that the
relation was open at the smgr level before attempting to invoke smgr.
This didn't happen every time; only when the relcache entry was rebuilt
along the way.

Per report from Garick Hamlin.
src/backend/catalog/heap.c