> On 7/22/11 9:30 AM, Joshua Berkus wrote: >> In any case, is there a reason why we can't call it pgpool_namespace_oid >> function instead? > > Tatsuo?
Here is the proposed patch for this. -- Tatsuo Ishii SRA OSS, Inc. Japan English: http://www.sraoss.co.jp/index_en.php Japanese: http://www.sraoss.co.jp
Index: sql/pgpool-regclass/pgpool-regclass.c =================================================================== RCS file: /cvsroot/pgpool/pgpool-II/sql/pgpool-regclass/pgpool-regclass.c,v retrieving revision 1.3 diff -c -r1.3 pgpool-regclass.c *** sql/pgpool-regclass/pgpool-regclass.c 28 Feb 2011 00:50:51 -0000 1.3 --- sql/pgpool-regclass/pgpool-regclass.c 27 Jul 2011 22:42:37 -0000 *************** *** 51,58 **** --- 51,60 ---- 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,178 **** --- 175,181 ---- return rel; } + #if !defined(PG_VERSION_NUM) || (PG_VERSION_NUM < 90100) /* * get_namespace_oid - given a namespace name, look up the OID * *************** *** 195,197 **** --- 198,201 ---- return oid; } + #endif
_______________________________________________ Pgpool-general mailing list [email protected] http://pgfoundry.org/mailman/listinfo/pgpool-general
