/*------------------------------------------------------------------------- * * heapvalid.c * heap tuple qualification validity checking code * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.23 1999/02/13 23:14:11 momjian Exp $ * *------------------------------------------------------------------------- */ #include #include #include /* * TupleUpdatedByCurXactAndCmd() -- Returns true if this tuple has * already been updated once by the current transaction/command * pair. */ bool TupleUpdatedByCurXactAndCmd(HeapTuple t) { if (TransactionIdEquals(t->t_data->t_xmax, GetCurrentTransactionId()) && CommandIdGEScanCommandId(t->t_data->t_cmax)) return true; return false; }