Re: TRUNCATE SERIALIZABLE and frozen COPY - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: TRUNCATE SERIALIZABLE and frozen COPY
Date
Msg-id CAHyXU0zJTz1eL=vp3dvKUFCnACON_b-ufSX1RSQR00ufHObfsQ@mail.gmail.com
Whole thread Raw
In response to Re: TRUNCATE SERIALIZABLE and frozen COPY  ("Kevin Grittner" <kgrittn@mail.com>)
List pgsql-hackers
On Fri, Nov 9, 2012 at 8:22 AM, Kevin Grittner <kgrittn@mail.com> wrote:
> Robert Haas wrote:
>
>> What I've been wondering since this last came up is whether we
>> could use some variant of the SIREAD locks Kevin introduced for SSI
>> to handle this case - essentially have the transaction doing the
>> TRUNCATE make an entry in the lock table that will force a
>> serialization failure for any backend which accesses the table with
>> a snapshot that can't see the truncating transaction's XID.
>
> It seems to me that the goal would be to make this semantically
> idential to the behavior users would see if an unqualified DELETE
> were run against the table rather than a TRUNCATE. To wit:

but, triggers would not fire, right?

merlin



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: TRUNCATE SERIALIZABLE and frozen COPY
Next
From: "Kevin Grittner"
Date:
Subject: Re: TRUNCATE SERIALIZABLE and frozen COPY