Skip site navigation (1) Skip section navigation (2)

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-0001DP-0Q@gemulon.postgresql.org (view raw or flat)
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
------
master

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

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

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group