]> granicus.if.org Git - postgresql/commit
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:37:01 +0000 (13:37 -0400)
commitae31b59512746a2cc397b70b8a05106e7a7f8ed3
treee7765f40416cf67b78dea7e60c2940c4d5d586f7
parenta3903f1bf8e3ecd0589725ed1efbc9208d03f336
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