Allow to compile against PostgreSQL 9.1.
authorTatsuo Ishii <ishii at sraoss.co.jp>
Thu, 28 Jul 2011 07:19:40 +0000 (07:19 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Thu, 28 Jul 2011 07:19:40 +0000 (07:19 +0000)
sql/pgpool-regclass/pgpool-regclass.c

index fc3c815b44e6b01ea3cfa6e5c397ba6bb4b75304..fc73a4479dccce5726f6f5a72b5dad217976b81a 100644 (file)
@@ -51,8 +51,10 @@ MymakeRangeVarFromNameList(List *names);
 
 extern Oid                     MyDatabaseId;
 
+#if !defined(PG_VERSION_NUM) || (PG_VERSION_NUM < 90100)
 static Oid
 get_namespace_oid(const char *nspname, bool missing_ok);
+#endif
 
 Datum
 pgpool_regclass(PG_FUNCTION_ARGS)
@@ -173,6 +175,7 @@ MymakeRangeVarFromNameList(List *names)
        return rel;
 }
 
+#if !defined(PG_VERSION_NUM) || (PG_VERSION_NUM < 90100)
 /*
  * get_namespace_oid - given a namespace name, look up the OID
  *
@@ -195,3 +198,4 @@ get_namespace_oid(const char *nspname, bool missing_ok)
 
        return oid;
 }
+#endif