pgsql: Use SnapshotNow instead of SnapshotSelf for reading the catalogs

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use SnapshotNow instead of SnapshotSelf for reading the catalogs
Date: 2005-02-20 22:02:23
Message-ID: 20050220220223.09F988B9CC8@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Use SnapshotNow instead of SnapshotSelf for reading the catalogs
during flat-file writing. The only difference is that SnapshotSelf
would consider tuples of the 'current command' within the current
transaction as valid, where SnapshotNow wouldn't. We can eliminate
the need for this with one extra CommandCounterIncrement call before
we start reading the catalogs.

Modified Files:
--------------
pgsql/src/backend/utils/init:
flatfiles.c (r1.2 -> r1.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/flatfiles.c.diff?r1=1.2&r2=1.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Neil Conway 2005-02-21 02:14:06 pgsql: Document the "register" and "unregister" pg_ctl subcommands, for
Previous Message Tom Lane 2005-02-20 21:46:51 pgsql: Remove some no-longer-needed kluges for bootstrapping, in