aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/async.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-25 22:07:21 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-25 22:07:21 +0000
commit2ba05400242c31604c14a1d0276abeabc7d7ed77 (patch)
tree05477f5f8d56e3f28da62e254349d486ab035dc3 /src/backend/commands/async.c
parentc9e69d71bda9a4e1b41bd2c08a2a57b70b97b334 (diff)
downloadpostgresql-2ba05400242c31604c14a1d0276abeabc7d7ed77.tar.gz
postgresql-2ba05400242c31604c14a1d0276abeabc7d7ed77.zip
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.
Diffstat (limited to 'src/backend/commands/async.c')
-rw-r--r--src/backend/commands/async.c7
1 files changed, 4 insertions, 3 deletions
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)