pgsql/src/backend/catalog (heap.c)

From: Tom Lane <tgl>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/catalog (heap.c)
Date: 2000-09-30 18:28:54
Message-ID: 200009301828.e8UISs699928@hub.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Saturday, September 30, 2000 @ 14:28:54
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/catalog
from hub.org:/home/projects/pgsql/tmp/cvs-serv99923

Modified Files:
heap.c

----------------------------- Log Message -----------------------------

Fix nasty TRUNCATE bug reported by Darrin Ladd. RelationTruncateIndexes
would close and then re-open rel being truncated. Depending on the
luck of the draw, the re-opened relcache entry might or might not be
at the same physical location as before. Unfortunately, if it wasn't
then heap_truncate would crash and burn, because it still had a pointer
at the old location. Fix is to open and then close rel in
RelationTruncateIndexes, so that rel's refcount never goes to zero
until heap_truncate is done.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2000-09-30 18:47:07 REL7_0_PATCHES pgsql/src/backend/catalog (heap.c)
Previous Message Peter Eisentraut - PostgreSQL 2000-09-30 16:58:20 pgsql/doc/src/sgml (admin.sgml charset.sgml installation.sgml postgres.sgml runtime.sgml)