Avoid unsatisfied-external-reference errors in static inlines.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jul 2022 17:37:10 +0000 (13:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jul 2022 17:37:10 +0000 (13:37 -0400)
commit27d2693187d1bcf2563ee7142ba37d4788c8d52b
tree8dd80b0bcc11c73fa4e91dcc64ebc82c061b68e8
parent617d69141220f277170927e03a19d2f1b77aed77
Avoid unsatisfied-external-reference errors in static inlines.

Commit 9c727360b neglected the lesson we've learned before:
protect references to backend global variables with #ifndef FRONTEND.

Since there's already a place for static inlines in this file,
move the just-converted functions to that stanza.  Undo the
entirely gratuitous de-macroization of RelationGetNumberOfBlocks
(that one may be okay, since it has no global variable references,
but it's also pointless).

Per buildfarm.
src/include/storage/bufmgr.h