diff options
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r-- | src/backend/commands/trigger.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index c298cba3047..70759b9d76a 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.186 2005/04/14 20:03:24 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.187 2005/04/28 21:47:11 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1592,12 +1592,12 @@ GetTupleForTrigger(EState *estate, ResultRelInfo *relinfo, HTSU_Result test; /* - * mark tuple for update + * lock tuple for update */ *newSlot = NULL; tuple.t_self = *tid; ltrmark:; - test = heap_mark4update(relation, &tuple, &buffer, cid); + test = heap_lock_tuple(relation, &tuple, &buffer, cid, LockTupleExclusive); switch (test) { case HeapTupleSelfUpdated: @@ -1636,8 +1636,7 @@ ltrmark:; default: ReleaseBuffer(buffer); - elog(ERROR, "unrecognized heap_mark4update status: %u", - test); + elog(ERROR, "invalid heap_lock_tuple status: %d", test); return NULL; /* keep compiler quiet */ } } |