mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 02:36:53 +02:00
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 commit3e9ca5260
, fixing build breakage fromdc7420c2c
and back-patching off10f0ae42
. 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.
This commit is contained in:
parent
0a269527f6
commit
b69e9dfab1
@ -468,6 +468,7 @@ typedef struct ViewOptions
|
|||||||
#define RelationIsMapped(relation) \
|
#define RelationIsMapped(relation) \
|
||||||
((relation)->rd_rel->relfilenode == InvalidOid)
|
((relation)->rd_rel->relfilenode == InvalidOid)
|
||||||
|
|
||||||
|
#ifndef FRONTEND
|
||||||
/*
|
/*
|
||||||
* RelationGetSmgr
|
* RelationGetSmgr
|
||||||
* Returns smgr file handle for a relation, opening it if needed.
|
* 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));
|
smgrsetowner(&(rel->rd_smgr), smgropen(rel->rd_node, rel->rd_backend));
|
||||||
return rel->rd_smgr;
|
return rel->rd_smgr;
|
||||||
}
|
}
|
||||||
|
#endif /* !FRONTEND */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RelationOpenSmgr
|
* RelationOpenSmgr
|
||||||
|
Loading…
Reference in New Issue
Block a user