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

Commit4fbf809

Browse files
committed
In transam.h, don't expose static inline functions to frontend code.
That leads to unsatisfied external references if the C compiler failsto elide unused static functions. Apparently, we have no buildfarmmembers building HEAD that have that issue ... but such compilers stillexist in the wild. Need to do something about that.In passing, fix Berkeley-era typo in comment.Discussion:https://postgr.es/m/27054.1558533367@sss.pgh.pa.us
1 parentb8c6014 commit4fbf809

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎src/include/access/transam.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ extern void AdvanceOldestClogXid(TransactionId oldest_datfrozenxid);
231231
externboolForceTransactionIdLimitUpdate(void);
232232
externOidGetNewObjectId(void);
233233

234+
/*
235+
* Some frontend programs include this header. For compilers that emit static
236+
* inline functions even when they're unused, that leads to unsatisfied
237+
* external references; hence hide them with #ifndef FRONTEND.
238+
*/
239+
#ifndefFRONTEND
240+
234241
/*
235242
* For callers that just need the XID part of the next transaction ID.
236243
*/
@@ -240,4 +247,6 @@ ReadNewTransactionId(void)
240247
returnXidFromFullTransactionId(ReadNextFullTransactionId());
241248
}
242249

243-
#endif/* TRAMSAM_H */
250+
#endif/* FRONTEND */
251+
252+
#endif/* TRANSAM_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp