Move pg_convert3 declaration to suppress compile warning. Really
authorTom Lane
Tue, 6 Aug 2002 14:11:06 +0000 (14:11 +0000)
committerTom Lane
Tue, 6 Aug 2002 14:11:06 +0000 (14:11 +0000)
pg_convert3 does not belong in a backend/catalog file at all, IMHO;
it should be in utils/adt.

src/include/catalog/pg_conversion.h
src/include/utils/builtins.h

index e250d6d5d0a67ab93d46ceff7864fa4ae68867bb..4b90c787def0b38248c7234c2aadf05e15366b28 100644 (file)
@@ -8,7 +8,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_conversion.h,v 1.4 2002/08/06 05:40:45 ishii Exp $
+ * $Id: pg_conversion.h,v 1.5 2002/08/06 14:11:06 tgl Exp $
  *
  * NOTES
  *   the genbki.sh script reads this file and generates .bki
@@ -93,6 +93,4 @@ extern void RemoveConversionById(Oid conversionOid);
 extern Oid FindConversion(const char *conname, Oid connamespace);
 extern Oid FindDefaultConversion(Oid connamespace, int4 for_encoding, int4 to_encoding);
 
-extern Datum pg_convert3(PG_FUNCTION_ARGS);
-
 #endif   /* PG_CONVERSION_H */
index 3abcc69dcd5e7591a656bc076e3a853dfefb3625..a138e2d2ffa19cc3435c4485c58e569283c9f2f4 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Id: builtins.h,v 1.188 2002/07/29 22:14:11 tgl Exp $
+ * $Id: builtins.h,v 1.189 2002/08/06 14:11:05 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -639,4 +639,7 @@ extern Datum quote_literal(PG_FUNCTION_ARGS);
 extern Datum show_config_by_name(PG_FUNCTION_ARGS);
 extern Datum set_config_by_name(PG_FUNCTION_ARGS);
 
+/* catalog/pg_conversion.c */
+extern Datum pg_convert3(PG_FUNCTION_ARGS);
+
 #endif   /* BUILTINS_H */