--- tarantool-1.5.2.20.g5f5d924.orig/src/plugin/pg/pg.cc
+++ tarantool-1.5.2.20.g5f5d924/src/plugin/pg/pg.cc
@@ -28,12 +28,17 @@
  */
 
 extern "C" {
-	#include <postgres.h>
 	#include <libpq-fe.h>
-	#include <catalog/pg_type.h>
 	#undef PACKAGE_VERSION
 }
 
+#define INT2OID 21
+#define INT4OID 23
+#define INT8OID 20
+#define NUMERICOID 1700
+#define BOOLOID 16
+#define TEXTOID 25
+
 #define PLUGIN_VERSION			1
 #define PLUGIN_NAME			"postgresql"
 #include <stddef.h>
