Add missing binary_upgrade.h includes.
authorAndres Freund <andres@anarazel.de>
Thu, 12 May 2022 16:20:36 +0000 (09:20 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 12 May 2022 19:39:33 +0000 (12:39 -0700)
A few places used binary_upgrade_* variables without including the header,
which worked without warnings because the variables are defined in those
places. However that can cause linker complaints with MSVC - except that we
don't see them right now, due to the use of a symbol export file.

Discussion: https://postgr.es/m/20220512164513.vaheofqp2q24l65r@alap3.anarazel.de

src/backend/catalog/heap.c
src/backend/commands/tablespace.c

index 800f85ed7db42126bdfc8e45d7a7931d307564ef..1803194db94da767549f72e156434bc3c9b3a9e0 100644 (file)
@@ -34,6 +34,7 @@
 #include "access/relation.h"
 #include "access/table.h"
 #include "access/tableam.h"
+#include "catalog/binary_upgrade.h"
 #include "catalog/catalog.h"
 #include "catalog/heap.h"
 #include "catalog/index.h"
index 690f05f66200866b90ca40023037956f7c5f84de..00ca397fe88f0ed053d6ef20b041111a4cddda65 100644 (file)
@@ -58,6 +58,7 @@
 #include "access/xact.h"
 #include "access/xloginsert.h"
 #include "access/xlogutils.h"
+#include "catalog/binary_upgrade.h"
 #include "catalog/catalog.h"
 #include "catalog/dependency.h"
 #include "catalog/indexing.h"