From 08e12b89d5e094315f2b5d238916b2f56ad8ad7a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 25 Aug 2005 19:45:06 +0000 Subject: Back-patch fixes for problems with VACUUM destroying t_ctid chains too soon, and with insufficient paranoia in code that follows t_ctid links. This patch covers the 8.0 branch. --- src/backend/commands/async.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/backend/commands/async.c') diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index e93d9b71163..7981dbeb805 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.118 2004/12/31 21:59:41 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.118.4.1 2005/08/25 19:44:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -520,8 +520,9 @@ AtCommit_Notify(void) } else if (listener->notification == 0) { - ItemPointerData ctid; int result; + ItemPointerData update_ctid; + TransactionId update_xmax; rTuple = heap_modifytuple(lTuple, lRel, value, nulls, repl); @@ -543,7 +544,7 @@ AtCommit_Notify(void) * heap_update calls. */ result = heap_update(lRel, &lTuple->t_self, rTuple, - &ctid, + &update_ctid, &update_xmax, GetCurrentCommandId(), InvalidSnapshot, false /* no wait for commit */ ); switch (result) -- cgit v1.2.3