mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03: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 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.
This commit is contained in:
parent
1034507245
commit
21c058648e
@ -526,6 +526,7 @@ typedef struct ViewOptions
|
|||||||
(RELKIND_HAS_STORAGE((relation)->rd_rel->relkind) && \
|
(RELKIND_HAS_STORAGE((relation)->rd_rel->relkind) && \
|
||||||
((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.
|
||||||
@ -546,6 +547,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
|
||||||
|
@ -97,11 +97,13 @@ extern PGDLLIMPORT SnapshotData CatalogSnapshotData;
|
|||||||
((snapshot)->snapshot_type == SNAPSHOT_MVCC || \
|
((snapshot)->snapshot_type == SNAPSHOT_MVCC || \
|
||||||
(snapshot)->snapshot_type == SNAPSHOT_HISTORIC_MVCC)
|
(snapshot)->snapshot_type == SNAPSHOT_HISTORIC_MVCC)
|
||||||
|
|
||||||
|
#ifndef FRONTEND
|
||||||
static inline bool
|
static inline bool
|
||||||
OldSnapshotThresholdActive(void)
|
OldSnapshotThresholdActive(void)
|
||||||
{
|
{
|
||||||
return old_snapshot_threshold >= 0;
|
return old_snapshot_threshold >= 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
extern Snapshot GetTransactionSnapshot(void);
|
extern Snapshot GetTransactionSnapshot(void);
|
||||||
extern Snapshot GetLatestSnapshot(void);
|
extern Snapshot GetLatestSnapshot(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user