From: =?UTF-8?q?=C3=81lvaro=20Herrera?= Date: Sun, 22 Mar 2026 19:29:21 +0100 Subject: [PATCH v2 09/15] twophase.h can mostly do without lock.h --- src/include/access/twophase.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/include/access/twophase.h b/src/include/access/twophase.h index e312514ba87..b762170a041 100644 --- a/src/include/access/twophase.h +++ b/src/include/access/twophase.h @@ -17,7 +17,12 @@ #include "access/xact.h" #include "access/xlogdefs.h" #include "datatype/timestamp.h" -#include "storage/lock.h" + +/* + * forward references in this file + */ +typedef struct VirtualTransactionId VirtualTransactionId; +typedef struct PGPROC PGPROC; /* * GlobalTransactionData is defined in twophase.c; other places have no -- 2.47.3 --3mo6hy575thcal37 Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="v2-0010-sinvaladt.h-doesn-t-need-lock.h-at-all.patch"