Skip to content

Commit 14ea365

Browse files
committed
Hide a static inline from FRONTEND code.
For some reason pg_waldump is including tuptable.h, and the recent addition of a static inline function to it is causing problems on older buildfarm members that fail to optimize such functions away completely. I wonder if this situation doesn't mean that some header refactoring is called for ... but as a band-aid, wrap the static function in "#ifndef FRONTEND". Discussion: https://postgr.es/m/20180824154237.mabsv6fsz5q37bma@alap3.anarazel.de
1 parent e3d77ea commit 14ea365

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/include/executor/tuptable.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ extern bool slot_getsysattr(TupleTableSlot *slot, int attnum,
180180
Datum *value, bool *isnull);
181181
extern void slot_getmissingattrs(TupleTableSlot *slot, int startAttNum, int lastAttNum);
182182

183+
#ifndef FRONTEND
184+
183185
/*
184186
* slot_getallattrs
185187
* This function forces all the entries of the slot's Datum/isnull
@@ -192,4 +194,6 @@ slot_getallattrs(TupleTableSlot *slot)
192194
slot_getsomeattrs(slot, slot->tts_tupleDescriptor->natts);
193195
}
194196

197+
#endif
198+
195199
#endif /* TUPTABLE_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy