aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-09-10 12:47:02 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-09-10 12:47:02 -0400
commit14ea36520389dbb1b48524223cf09389154a0f2e (patch)
tree91682dd7a722c72f916e175f768611228b098616
parente3d77ea6b4e425093db23be492f236896dd7b501 (diff)
downloadpostgresql-14ea36520389dbb1b48524223cf09389154a0f2e.tar.gz
postgresql-14ea36520389dbb1b48524223cf09389154a0f2e.zip
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
-rw-r--r--src/include/executor/tuptable.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/executor/tuptable.h b/src/include/executor/tuptable.h
index bb38aa655c0..02171ce94cb 100644
--- a/src/include/executor/tuptable.h
+++ b/src/include/executor/tuptable.h
@@ -180,6 +180,8 @@ extern bool slot_getsysattr(TupleTableSlot *slot, int attnum,
Datum *value, bool *isnull);
extern void slot_getmissingattrs(TupleTableSlot *slot, int startAttNum, int lastAttNum);
+#ifndef FRONTEND
+
/*
* slot_getallattrs
* This function forces all the entries of the slot's Datum/isnull
@@ -192,4 +194,6 @@ slot_getallattrs(TupleTableSlot *slot)
slot_getsomeattrs(slot, slot->tts_tupleDescriptor->natts);
}
+#endif
+
#endif /* TUPTABLE_H */