From 2ba05400242c31604c14a1d0276abeabc7d7ed77 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 25 Aug 2005 22:07:21 +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 7.4 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 4a39e008f90..0f237eab64a 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 - * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.102.2.1 2004/05/22 21:58:41 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.102.2.2 2005/08/25 22:07:15 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -512,8 +512,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); @@ -533,7 +534,7 @@ AtCommit_Notify(void) * heap_getnext and heap_update calls. */ result = heap_update(lRel, &lTuple->t_self, rTuple, - &ctid, + &update_ctid, &update_xmax, GetCurrentCommandId(), SnapshotAny, false /* no wait for commit */); switch (result) -- cgit v1.2.3