Re: mvcc catalo gsnapshots and TopTransactionContext - Mailing list pgsql-hackers

From Tom Lane
Subject Re: mvcc catalo gsnapshots and TopTransactionContext
Date
Msg-id 27886.1373569785@sss.pgh.pa.us
Whole thread Raw
In response to mvcc catalo gsnapshots and TopTransactionContext  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> since the mvcc catalog patch has gone in we require all users of
> systable_* to be in a valid transaction since the snapshot is copied via
> CopySnapshot() in RegisterSnapshot().

It never has been, and never will be, allowed to call the catcache code
without being in a transaction.  What do you think will happen if the
requested row isn't in cache?  A table access, that's what, and that
absolutely requires being in a transaction.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: [PATCH] big test separation POC
Next
From: Michael Paquier
Date:
Subject: Re: Support for REINDEX CONCURRENTLY