Fix compilation on PG13
authorChristoph Berg <christoph.berg@credativ.de>
Tue, 27 Oct 2020 14:11:16 +0000 (15:11 +0100)
committerChristoph Berg <christoph.berg@credativ.de>
Tue, 27 Oct 2020 14:27:11 +0000 (15:27 +0100)
decode.c

index 9415baa3d175be35f291a2d7dd4a9cad0a5b2c62..86169355a862ef02bf9d82114f29cf8438b5ac65 100644 (file)
--- a/decode.c
+++ b/decode.c
@@ -4,7 +4,12 @@
 #include <lib/stringinfo.h>
 #include <access/htup_details.h>
 #include <access/tupmacs.h>
+#if PG_VERSION_NUM >= 130000
+#include <access/detoast.h>
+#include <access/heaptoast.h>
+#else
 #include <access/tuptoaster.h>
+#endif
 #include <datatype/timestamp.h>
 #include <common/pg_lzcompress.h>
 #include <string.h>