From 7531d2fd85c0360a5d05628202a123eaa5ee7bca Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat, 28 Aug 2004 21:58:59 +0000
Subject: [PATCH] Add missing Assert to make TransactionIdDidAbort more
 consistent with TransactionIdDidCommit.

---
 src/backend/access/transam/transam.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/access/transam/transam.c b/src/backend/access/transam/transam.c
index 2a32960f9e3..92d11306068 100644
--- a/src/backend/access/transam/transam.c
+++ b/src/backend/access/transam/transam.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.58 2004/08/22 02:41:57 tgl Exp $
+ *	  $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.59 2004/08/28 21:58:59 tgl Exp $
  *
  * NOTES
  *	  This file contains the high level access-method interface to the
@@ -258,6 +258,7 @@ TransactionIdDidAbort(TransactionId transactionId)
 		if (TransactionIdPrecedes(transactionId, RecentXmin))
 			return true;
 		parentXid = SubTransGetParent(transactionId);
+		Assert(TransactionIdIsValid(parentXid));
 		return TransactionIdDidAbort(parentXid);
 	}
 
-- 
GitLab