From fea9fe0209e8f95a5067af8c1e496c8440ebc9e7 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 a16bf2fa15a..94439f2aed4 100644
--- a/src/include/utils/acl.h
+++ b/src/include/utils/acl.h
@@ -229,7 +229,7 @@ extern void select_best_grantor(const RoleSpec *grantedBy, 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

