Re: MVCC catalog access - Mailing list pgsql-hackers

From Robert Haas
Subject Re: MVCC catalog access
Date
Msg-id CA+TgmoYpgCM1LUqh7n_dC_6q03at_Z2jGcLL9eKV8wYsxtq+6A@mail.gmail.com
Whole thread Raw
In response to Re: MVCC catalog access  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: MVCC catalog access
Re: MVCC catalog access
Re: MVCC catalog access
List pgsql-hackers
On Thu, May 30, 2013 at 1:39 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> +1.

Here's a more serious patch for MVCC catalog access.  This one
involves more data copying than the last one, I think, because the
previous version did not register the snapshots it took, which I think
is not safe.  So this needs to be re-tested for performance, which I
have so far made no attempt to do.

It strikes me as rather unfortunate that the snapshot interface is
designed in such a way as to require so much data copying.  It seems
we always take a snapshot by copying from PGXACT/PGPROC into
CurrentSnapshotData or SecondarySnapshotData, and then copying data a
second time from there to someplace more permanent.  It would be nice
to avoid that, at least in common cases.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Vacuum, Freeze and Analyze: the big picture
Next
From: Simon Riggs
Date:
Subject: Re: Optimising Foreign Key checks