summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2023-01-20 16:58:12 +0000
committerTom Lane2023-01-20 16:58:12 +0000
commitb69e9dfab14f3602eac6a97afaf1a593cfa34424 (patch)
tree6ff9893e127333871c87d27ef7e6b2ad4577c3b6
parent0a269527f6a1151fe95efe4a8c2112a6e4b66496 (diff)
Make our back branches build under -fkeep-inline-functions.
Add "#ifndef FRONTEND" where necessary to make pg_waldump build on compilers that don't elide unused static-inline functions. This back-patches relevant parts of commit 3e9ca5260, fixing build breakage from dc7420c2c and back-patching of f10f0ae42. Per recently-resurrected buildfarm member castoroides. We aren't expecting castoroides to build anything newer than v11, but we might as well clean up the intermediate branches while at it.
-rw-r--r--src/include/utils/rel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h
index 40cc47ad254..09e8c06ffb8 100644
--- a/src/include/utils/rel.h
+++ b/src/include/utils/rel.h
@@ -468,6 +468,7 @@ typedef struct ViewOptions
#define RelationIsMapped(relation) \
((relation)->rd_rel->relfilenode == InvalidOid)
+#ifndef FRONTEND
/*
* RelationGetSmgr
* Returns smgr file handle for a relation, opening it if needed.
@@ -488,6 +489,7 @@ RelationGetSmgr(Relation rel)
smgrsetowner(&(rel->rd_smgr), smgropen(rel->rd_node, rel->rd_backend));
return rel->rd_smgr;
}
+#endif /* !FRONTEND */
/*
* RelationOpenSmgr