diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-01-20 11:58:12 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-01-20 11:58:12 -0500 |
commit | c78f109b87d8a64b0f785bf6fa30d4bd29742638 (patch) | |
tree | e7e0fe92a37f75ce74e3e5b016d93e4d9ae2d6aa | |
parent | 1b9a0b96a8701ddcd147836241f89d616772d332 (diff) | |
download | postgresql-c78f109b87d8a64b0f785bf6fa30d4bd29742638.tar.gz postgresql-c78f109b87d8a64b0f785bf6fa30d4bd29742638.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 8d9f7006c3d..1bbbc1da9cd 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -505,6 +505,7 @@ typedef struct ViewOptions (RELKIND_HAS_STORAGE((relation)->rd_rel->relkind) && \ ((relation)->rd_rel->relfilenode == InvalidOid)) +#ifndef FRONTEND /* * RelationGetSmgr * Returns smgr file handle for a relation, opening it if needed. @@ -525,6 +526,7 @@ RelationGetSmgr(Relation rel) smgrsetowner(&(rel->rd_smgr), smgropen(rel->rd_node, rel->rd_backend)); return rel->rd_smgr; } +#endif /* !FRONTEND */ /* * RelationOpenSmgr |