pgsql: Fix crash in CREATE UNLOGGED TABLE.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix crash in CREATE UNLOGGED TABLE.
Date: 2011-06-17 17:37:12
Message-ID: E1QXcym-0001DR-2k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
REL9_1_STABLE

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-06-17 18:37:26 pgsql: Add overflow checks to int4 and int8 versions of generate_series
Previous Message Robert Haas 2011-06-17 13:14:54 pgsql: Fix minor thinko in ProcGlobalShmemSize().