From 67dafec690cbeae48489fc1ad6484c411f8f6ec0 Mon Sep 17 00:00:00 2001
From: Anton Voloshin <a.voloshin@postgrespro.ru>
Date: Wed, 12 Aug 2026 11:20:47 +0300
Subject: [PATCH] add PGDLLIMPORT to the no-longer-static cached_db_hash in
 acl.h

It was made non-static in master commit
ffca23839cc Invalidate plan cache after role changes. (2026-08-10) <Nathan Bossart>
which was back-ported down to REL_14_STABLE..REL_19_STABLE
---
 src/include/utils/acl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h
index 484883a79a5..329756393ee 100644
--- a/src/include/utils/acl.h
+++ b/src/include/utils/acl.h
@@ -227,7 +227,7 @@ extern void select_best_grantor(Oid roleId, AclMode privileges,
 								Oid *grantorId, AclMode *grantOptions);
 
 /* DATABASEOID syscache hash value for our own database, set by initialize_acl */
-extern uint32 cached_db_hash;
+extern PGDLLIMPORT uint32 cached_db_hash;
 
 extern void initialize_acl(void);
 
-- 
2.55.0

