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

pgsql-server: Rearrange order of operations in heap_drop_with_catalog

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Rearrange order of operations in heap_drop_with_catalog
Date: 2004-08-28 21:05:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Rearrange order of operations in heap_drop_with_catalog and index_drop
so that we close and flush the doomed relation's relcache entry before
we start to delete the underlying catalog rows, rather than afterwards.
For awhile yesterday I thought that an unexpected relcache entry rebuild
partway through this sequence might explain the infrequent parallel
regression failures we were chasing.  It doesn't, mainly because there's
no CommandCounterIncrement in the sequence and so the deletions aren't
"really" done yet.  But it sure seems like trouble waiting to happen.

Modified Files:
        heap.c (r1.272 -> r1.273)
        index.c (r1.235 -> r1.236)
        tablecmds.c (r1.126 -> r1.127)
        heap.h (r1.68 -> r1.69)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2004-08-28 21:10:01
Subject: pgsql-server: Prevent pg_ctl restart from adding -D datadir multiple
Previous:From: Bruce MomjianDate: 2004-08-28 21:01:38
Subject: pgsql-server: > > Another issue is that when installing the Postgres

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