Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21c0586

Browse files
committed
Make our back branches build under -fkeep-inline-functions.
Add "#ifndef FRONTEND" where necessary to make pg_waldump buildon compilers that don't elide unused static-inline functions.This back-patches relevant parts of commit3e9ca52, fixing buildbreakage fromdc7420c and back-patching off10f0ae.Per recently-resurrected buildfarm member castoroides. We aren'texpecting castoroides to build anything newer than v11, but wemight as well clean up the intermediate branches while at it.
1 parent1034507 commit21c0586

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎src/include/utils/rel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ typedef struct ViewOptions
526526
(RELKIND_HAS_STORAGE((relation)->rd_rel->relkind) && \
527527
((relation)->rd_rel->relfilenode == InvalidOid))
528528

529+
#ifndefFRONTEND
529530
/*
530531
* RelationGetSmgr
531532
*Returns smgr file handle for a relation, opening it if needed.
@@ -546,6 +547,7 @@ RelationGetSmgr(Relation rel)
546547
smgrsetowner(&(rel->rd_smgr),smgropen(rel->rd_node,rel->rd_backend));
547548
returnrel->rd_smgr;
548549
}
550+
#endif/* !FRONTEND */
549551

550552
/*
551553
* RelationOpenSmgr

‎src/include/utils/snapmgr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ extern PGDLLIMPORT SnapshotData CatalogSnapshotData;
9797
((snapshot)->snapshot_type == SNAPSHOT_MVCC || \
9898
(snapshot)->snapshot_type == SNAPSHOT_HISTORIC_MVCC)
9999

100+
#ifndefFRONTEND
100101
staticinlinebool
101102
OldSnapshotThresholdActive(void)
102103
{
103104
returnold_snapshot_threshold >=0;
104105
}
106+
#endif
105107

106108
externSnapshotGetTransactionSnapshot(void);
107109
externSnapshotGetLatestSnapshot(void);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp