Skip to content

Commit b74f61a

Browse files
committed
Move pg_convert3 declaration to suppress compile warning. Really
pg_convert3 does not belong in a backend/catalog file at all, IMHO; it should be in utils/adt.
1 parent 6206a88 commit b74f61a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/include/catalog/pg_conversion.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_conversion.h,v 1.4 2002/08/06 05:40:45 ishii Exp $
11+
* $Id: pg_conversion.h,v 1.5 2002/08/06 14:11:06 tgl Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -93,6 +93,4 @@ extern void RemoveConversionById(Oid conversionOid);
9393
extern Oid FindConversion(const char *conname, Oid connamespace);
9494
extern Oid FindDefaultConversion(Oid connamespace, int4 for_encoding, int4 to_encoding);
9595

96-
extern Datum pg_convert3(PG_FUNCTION_ARGS);
97-
9896
#endif /* PG_CONVERSION_H */

src/include/utils/builtins.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: builtins.h,v 1.188 2002/07/29 22:14:11 tgl Exp $
10+
* $Id: builtins.h,v 1.189 2002/08/06 14:11:05 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -639,4 +639,7 @@ extern Datum quote_literal(PG_FUNCTION_ARGS);
639639
extern Datum show_config_by_name(PG_FUNCTION_ARGS);
640640
extern Datum set_config_by_name(PG_FUNCTION_ARGS);
641641

642+
/* catalog/pg_conversion.c */
643+
extern Datum pg_convert3(PG_FUNCTION_ARGS);
644+
642645
#endif /* BUILTINS_H */

0 commit comments

Comments
 (0)