Skip site navigation (1) Skip section navigation (2)

pgsql: Don't try to fetch database name when SetTransactionIdLimit()is

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't try to fetch database name when SetTransactionIdLimit()is
Date: 2010-10-20 16:49:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Don't try to fetch database name when SetTransactionIdLimit() is executed
outside a transaction.

This repairs brain fade in my patch of 2009-08-30: the reason we had been
storing oldest-database name, not OID, in ShmemVariableCache was of course
to avoid having to do a catalog lookup at times when it might be unsafe.

This error explains why Aleksandr Dushein is having trouble getting out of
an XID wraparound state in bug #5718, though not how he got into that state
in the first place.  I suspect pg_upgrade is at fault there.



Modified Files
src/backend/access/transam/varsup.c |   18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2010-10-20 19:33:35
Subject: pgsql: If pk is NULL,the backend would segfault when accessing ->algo
Previous:From: Alvaro HerreraDate: 2010-10-20 14:59:23
Subject: pgsql: Remove AtStart_Cache() call in CommandCounterIncrement().

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group