Re: locks in CREATE TRIGGER, ADD FK - Mailing list pgsql-hackers

From Tom Lane
Subject Re: locks in CREATE TRIGGER, ADD FK
Date
Msg-id 1824.1111553638@sss.pgh.pa.us
Whole thread Raw
In response to Re: locks in CREATE TRIGGER, ADD FK  (Neil Conway <neilc@samurai.com>)
Responses Re: locks in CREATE TRIGGER, ADD FK
List pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> - if we make these changes, we will need some way to delete a 
> no-longer-visible relfilenode.

This is presuming that we abandon the notion that system catalog
access use SnapshotNow.  Which opens the question of what they should
use instead ... to which "transaction snapshot" isn't the answer,
because we have to be able to do system catalog accesses before
we've set the snapshot.  (Else forget issuing LOCK TABLE before
the snapshot is set.)

I really think that you haven't the faintest idea of the size of
the can of worms you are opening here :-(
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: swapping relfilenodes (was: Re: locks in CREATE TRIGGER,
Next
From: ITAGAKI Takahiro
Date:
Subject: Re: WAL: O_DIRECT and multipage-writer