Thread: pgsql: Fix crash in CREATE UNLOGGED TABLE.

pgsql: Fix crash in CREATE UNLOGGED TABLE.

From
Robert Haas
Date:
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.

Branch
------
master

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

Modified Files
--------------
src/backend/catalog/heap.c |    1 +
1 files changed, 1 insertions(+), 0 deletions(-)