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

From Simon Riggs
Subject Re: TRUNCATE SERIALIZABLE and frozen COPY
Date
Msg-id CA+U5nM+fs6u6hbRJiVJ41u=UrV0YgchhmWm03+3=8+LKxgmh5A@mail.gmail.com
Whole thread Raw
In response to Re: TRUNCATE SERIALIZABLE and frozen COPY  (Marti Raudsepp <marti@juffo.org>)
List pgsql-hackers
On 9 November 2012 14:55, Marti Raudsepp <marti@juffo.org> wrote:
> On Fri, Nov 9, 2012 at 4:24 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> We need a fast lookup structure that is expandable to accommodate
>> arbitrary numbers of truncates. Shared hash table, with some form of
>> overflow mechanism.
>
> Surely you only need to remember the last completed truncate for each
> relation?

Yes

> The latest one also invalidates any snapshots before earlier
> truncates.

1 per table, arbirary number of tables

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: AutoVacuum starvation from sinval messages
Next
From: Robert Haas
Date:
Subject: Re: WIP checksums patch