* by PostgreSQL
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.502 2008/09/24 19:33:15 heikki Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.503 2008/10/31 08:39:21 heikki Exp $
*
*-------------------------------------------------------------------------
*/
#include "access/attnum.h"
#include "access/sysattr.h"
+#include "catalog/pg_cast.h"
#include "catalog/pg_class.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_trigger.h"
int i_casttarget;
int i_castfunc;
int i_castcontext;
+ int i_castmethod;
/* Make sure we are in proper schema */
selectSourceSchema("pg_catalog");
- if (g_fout->remoteVersion >= 70300)
+ if (g_fout->remoteVersion >= 80400)
+ {
+ appendPQExpBuffer(query, "SELECT tableoid, oid, "
+ "castsource, casttarget, castfunc, castcontext, "
+ "castmethod "
+ "FROM pg_cast ORDER BY 3,4");
+ }
+ else if (g_fout->remoteVersion >= 70300)
{
appendPQExpBuffer(query, "SELECT tableoid, oid, "
- "castsource, casttarget, castfunc, castcontext "
+ "castsource, casttarget, castfunc, castcontext, "
+ "CASE WHEN castfunc = 0 THEN 'b' ELSE 'f' END AS castmethod "
"FROM pg_cast ORDER BY 3,4");
}
else
{
appendPQExpBuffer(query, "SELECT 0 as tableoid, p.oid, "
"t1.oid as castsource, t2.oid as casttarget, "
- "p.oid as castfunc, 'e' as castcontext "
+ "p.oid as castfunc, 'e' as castcontext, "
+ "'f' as castmethod "
"FROM pg_type t1, pg_type t2, pg_proc p "
"WHERE p.pronargs = 1 AND "
"p.proargtypes[0] = t1.oid AND "
i_casttarget = PQfnumber(res, "casttarget");
i_castfunc = PQfnumber(res, "castfunc");
i_castcontext = PQfnumber(res, "castcontext");
+ i_castmethod = PQfnumber(res, "castmethod");
for (i = 0; i < ntups; i++)
{
castinfo[i].casttarget = atooid(PQgetvalue(res, i, i_casttarget));
castinfo[i].castfunc = atooid(PQgetvalue(res, i, i_castfunc));
castinfo[i].castcontext = *(PQgetvalue(res, i, i_castcontext));
+ castinfo[i].castmethod = *(PQgetvalue(res, i, i_castmethod));
/*
* Try to name cast as concatenation of typnames. This is only used
getFormattedTypeName(cast->castsource, zeroAsNone),
getFormattedTypeName(cast->casttarget, zeroAsNone));
- if (!OidIsValid(cast->castfunc))
- appendPQExpBuffer(defqry, "WITHOUT FUNCTION");
- else
+ switch(cast->castmethod)
{
- /*
- * Always qualify the function name, in case it is not in pg_catalog
- * schema (format_function_signature won't qualify it).
- */
- appendPQExpBuffer(defqry, "WITH FUNCTION %s.",
- fmtId(funcInfo->dobj.namespace->dobj.name));
- appendPQExpBuffer(defqry, "%s",
- format_function_signature(funcInfo, true));
+ case COERCION_METHOD_BINARY:
+ appendPQExpBuffer(defqry, "WITHOUT FUNCTION");
+ break;
+ case COERCION_METHOD_INOUT:
+ appendPQExpBuffer(defqry, "WITH INOUT");
+ break;
+ case COERCION_METHOD_FUNCTION:
+ /*
+ * Always qualify the function name, in case it is not in
+ * pg_catalog schema (format_function_signature won't qualify it).
+ */
+ appendPQExpBuffer(defqry, "WITH FUNCTION %s.",
+ fmtId(funcInfo->dobj.namespace->dobj.name));
+ appendPQExpBuffer(defqry, "%s",
+ format_function_signature(funcInfo, true));
+ break;
+ default:
+ write_msg(NULL, "WARNING: bogus value in pg_cast.castmethod field\n");
}
if (cast->castcontext == 'a')
*
* Copyright (c) 2002-2008, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/catalog/pg_cast.h,v 1.39 2008/03/27 03:57:34 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/pg_cast.h,v 1.40 2008/10/31 08:39:22 heikki Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
Oid casttarget; /* destination datatype for cast */
Oid castfunc; /* cast function; 0 = binary coercible */
char castcontext; /* contexts in which cast can be used */
+ char castmethod; /* cast method */
} FormData_pg_cast;
typedef FormData_pg_cast *Form_pg_cast;
COERCION_CODE_EXPLICIT = 'e' /* explicit cast operation */
} CoercionCodes;
+/*
+ * The allowable values for pg_cast.castmethod are specified by this enum.
+ * Since castcontext is stored as a "char", we use ASCII codes for human
+ * convenience in reading the table.
+ */
+typedef enum CoercionMethod
+{
+ COERCION_METHOD_FUNCTION = 'f', /* use a function */
+ COERCION_METHOD_BINARY = 'b', /* types are binary-compatible */
+ COERCION_METHOD_INOUT = 'i' /* use input/output functions */
+} CoercionMethod;
+
/* ----------------
* compiler constants for pg_cast
* ----------------
*/
-#define Natts_pg_cast 4
+#define Natts_pg_cast 5
#define Anum_pg_cast_castsource 1
#define Anum_pg_cast_casttarget 2
#define Anum_pg_cast_castfunc 3
#define Anum_pg_cast_castcontext 4
+#define Anum_pg_cast_castmethod 5
/* ----------------
* initial contents of pg_cast
* int2->int4->int8->numeric->float4->float8, while casts in the
* reverse direction are assignment-only.
*/
-DATA(insert ( 20 21 714 a ));
-DATA(insert ( 20 23 480 a ));
-DATA(insert ( 20 700 652 i ));
-DATA(insert ( 20 701 482 i ));
-DATA(insert ( 20 1700 1781 i ));
-DATA(insert ( 21 20 754 i ));
-DATA(insert ( 21 23 313 i ));
-DATA(insert ( 21 700 236 i ));
-DATA(insert ( 21 701 235 i ));
-DATA(insert ( 21 1700 1782 i ));
-DATA(insert ( 23 20 481 i ));
-DATA(insert ( 23 21 314 a ));
-DATA(insert ( 23 700 318 i ));
-DATA(insert ( 23 701 316 i ));
-DATA(insert ( 23 1700 1740 i ));
-DATA(insert ( 700 20 653 a ));
-DATA(insert ( 700 21 238 a ));
-DATA(insert ( 700 23 319 a ));
-DATA(insert ( 700 701 311 i ));
-DATA(insert ( 700 1700 1742 a ));
-DATA(insert ( 701 20 483 a ));
-DATA(insert ( 701 21 237 a ));
-DATA(insert ( 701 23 317 a ));
-DATA(insert ( 701 700 312 a ));
-DATA(insert ( 701 1700 1743 a ));
-DATA(insert ( 1700 20 1779 a ));
-DATA(insert ( 1700 21 1783 a ));
-DATA(insert ( 1700 23 1744 a ));
-DATA(insert ( 1700 700 1745 i ));
-DATA(insert ( 1700 701 1746 i ));
+DATA(insert ( 20 21 714 a f ));
+DATA(insert ( 20 23 480 a f ));
+DATA(insert ( 20 700 652 i f ));
+DATA(insert ( 20 701 482 i f ));
+DATA(insert ( 20 1700 1781 i f ));
+DATA(insert ( 21 20 754 i f ));
+DATA(insert ( 21 23 313 i f ));
+DATA(insert ( 21 700 236 i f ));
+DATA(insert ( 21 701 235 i f ));
+DATA(insert ( 21 1700 1782 i f ));
+DATA(insert ( 23 20 481 i f ));
+DATA(insert ( 23 21 314 a f ));
+DATA(insert ( 23 700 318 i f ));
+DATA(insert ( 23 701 316 i f ));
+DATA(insert ( 23 1700 1740 i f ));
+DATA(insert ( 700 20 653 a f ));
+DATA(insert ( 700 21 238 a f ));
+DATA(insert ( 700 23 319 a f ));
+DATA(insert ( 700 701 311 i f ));
+DATA(insert ( 700 1700 1742 a f ));
+DATA(insert ( 701 20 483 a f ));
+DATA(insert ( 701 21 237 a f ));
+DATA(insert ( 701 23 317 a f ));
+DATA(insert ( 701 700 312 a f ));
+DATA(insert ( 701 1700 1743 a f ));
+DATA(insert ( 1700 20 1779 a f ));
+DATA(insert ( 1700 21 1783 a f ));
+DATA(insert ( 1700 23 1744 a f ));
+DATA(insert ( 1700 700 1745 i f ));
+DATA(insert ( 1700 701 1746 i f ));
/* Allow explicit coercions between int4 and bool */
-DATA(insert ( 23 16 2557 e ));
-DATA(insert ( 16 23 2558 e ));
+DATA(insert ( 23 16 2557 e f ));
+DATA(insert ( 16 23 2558 e f ));
/*
* OID category: allow implicit conversion from any integral type (including
* casts from text and varchar to regclass, which exist mainly to support
* legacy forms of nextval() and related functions.
*/
-DATA(insert ( 20 26 1287 i ));
-DATA(insert ( 21 26 313 i ));
-DATA(insert ( 23 26 0 i ));
-DATA(insert ( 26 20 1288 a ));
-DATA(insert ( 26 23 0 a ));
-DATA(insert ( 26 24 0 i ));
-DATA(insert ( 24 26 0 i ));
-DATA(insert ( 20 24 1287 i ));
-DATA(insert ( 21 24 313 i ));
-DATA(insert ( 23 24 0 i ));
-DATA(insert ( 24 20 1288 a ));
-DATA(insert ( 24 23 0 a ));
-DATA(insert ( 24 2202 0 i ));
-DATA(insert ( 2202 24 0 i ));
-DATA(insert ( 26 2202 0 i ));
-DATA(insert ( 2202 26 0 i ));
-DATA(insert ( 20 2202 1287 i ));
-DATA(insert ( 21 2202 313 i ));
-DATA(insert ( 23 2202 0 i ));
-DATA(insert ( 2202 20 1288 a ));
-DATA(insert ( 2202 23 0 a ));
-DATA(insert ( 26 2203 0 i ));
-DATA(insert ( 2203 26 0 i ));
-DATA(insert ( 20 2203 1287 i ));
-DATA(insert ( 21 2203 313 i ));
-DATA(insert ( 23 2203 0 i ));
-DATA(insert ( 2203 20 1288 a ));
-DATA(insert ( 2203 23 0 a ));
-DATA(insert ( 2203 2204 0 i ));
-DATA(insert ( 2204 2203 0 i ));
-DATA(insert ( 26 2204 0 i ));
-DATA(insert ( 2204 26 0 i ));
-DATA(insert ( 20 2204 1287 i ));
-DATA(insert ( 21 2204 313 i ));
-DATA(insert ( 23 2204 0 i ));
-DATA(insert ( 2204 20 1288 a ));
-DATA(insert ( 2204 23 0 a ));
-DATA(insert ( 26 2205 0 i ));
-DATA(insert ( 2205 26 0 i ));
-DATA(insert ( 20 2205 1287 i ));
-DATA(insert ( 21 2205 313 i ));
-DATA(insert ( 23 2205 0 i ));
-DATA(insert ( 2205 20 1288 a ));
-DATA(insert ( 2205 23 0 a ));
-DATA(insert ( 26 2206 0 i ));
-DATA(insert ( 2206 26 0 i ));
-DATA(insert ( 20 2206 1287 i ));
-DATA(insert ( 21 2206 313 i ));
-DATA(insert ( 23 2206 0 i ));
-DATA(insert ( 2206 20 1288 a ));
-DATA(insert ( 2206 23 0 a ));
-DATA(insert ( 26 3734 0 i ));
-DATA(insert ( 3734 26 0 i ));
-DATA(insert ( 20 3734 1287 i ));
-DATA(insert ( 21 3734 313 i ));
-DATA(insert ( 23 3734 0 i ));
-DATA(insert ( 3734 20 1288 a ));
-DATA(insert ( 3734 23 0 a ));
-DATA(insert ( 26 3769 0 i ));
-DATA(insert ( 3769 26 0 i ));
-DATA(insert ( 20 3769 1287 i ));
-DATA(insert ( 21 3769 313 i ));
-DATA(insert ( 23 3769 0 i ));
-DATA(insert ( 3769 20 1288 a ));
-DATA(insert ( 3769 23 0 a ));
-DATA(insert ( 25 2205 1079 i ));
-DATA(insert ( 1043 2205 1079 i ));
+DATA(insert ( 20 26 1287 i f ));
+DATA(insert ( 21 26 313 i f ));
+DATA(insert ( 23 26 0 i b ));
+DATA(insert ( 26 20 1288 a f ));
+DATA(insert ( 26 23 0 a b ));
+DATA(insert ( 26 24 0 i b ));
+DATA(insert ( 24 26 0 i b ));
+DATA(insert ( 20 24 1287 i f ));
+DATA(insert ( 21 24 313 i f ));
+DATA(insert ( 23 24 0 i b ));
+DATA(insert ( 24 20 1288 a f ));
+DATA(insert ( 24 23 0 a b ));
+DATA(insert ( 24 2202 0 i b ));
+DATA(insert ( 2202 24 0 i b ));
+DATA(insert ( 26 2202 0 i b ));
+DATA(insert ( 2202 26 0 i b ));
+DATA(insert ( 20 2202 1287 i f ));
+DATA(insert ( 21 2202 313 i f ));
+DATA(insert ( 23 2202 0 i b ));
+DATA(insert ( 2202 20 1288 a f ));
+DATA(insert ( 2202 23 0 a b ));
+DATA(insert ( 26 2203 0 i b ));
+DATA(insert ( 2203 26 0 i b ));
+DATA(insert ( 20 2203 1287 i f ));
+DATA(insert ( 21 2203 313 i f ));
+DATA(insert ( 23 2203 0 i b ));
+DATA(insert ( 2203 20 1288 a f ));
+DATA(insert ( 2203 23 0 a b ));
+DATA(insert ( 2203 2204 0 i b ));
+DATA(insert ( 2204 2203 0 i b ));
+DATA(insert ( 26 2204 0 i b ));
+DATA(insert ( 2204 26 0 i b ));
+DATA(insert ( 20 2204 1287 i f ));
+DATA(insert ( 21 2204 313 i f ));
+DATA(insert ( 23 2204 0 i b ));
+DATA(insert ( 2204 20 1288 a f ));
+DATA(insert ( 2204 23 0 a b ));
+DATA(insert ( 26 2205 0 i b ));
+DATA(insert ( 2205 26 0 i b ));
+DATA(insert ( 20 2205 1287 i f ));
+DATA(insert ( 21 2205 313 i f ));
+DATA(insert ( 23 2205 0 i b ));
+DATA(insert ( 2205 20 1288 a f ));
+DATA(insert ( 2205 23 0 a b ));
+DATA(insert ( 26 2206 0 i b ));
+DATA(insert ( 2206 26 0 i b ));
+DATA(insert ( 20 2206 1287 i f ));
+DATA(insert ( 21 2206 313 i f ));
+DATA(insert ( 23 2206 0 i b ));
+DATA(insert ( 2206 20 1288 a f ));
+DATA(insert ( 2206 23 0 a b ));
+DATA(insert ( 26 3734 0 i b ));
+DATA(insert ( 3734 26 0 i b ));
+DATA(insert ( 20 3734 1287 i f ));
+DATA(insert ( 21 3734 313 i f ));
+DATA(insert ( 23 3734 0 i b ));
+DATA(insert ( 3734 20 1288 a f ));
+DATA(insert ( 3734 23 0 a b ));
+DATA(insert ( 26 3769 0 i b ));
+DATA(insert ( 3769 26 0 i b ));
+DATA(insert ( 20 3769 1287 i f ));
+DATA(insert ( 21 3769 313 i f ));
+DATA(insert ( 23 3769 0 i b ));
+DATA(insert ( 3769 20 1288 a f ));
+DATA(insert ( 3769 23 0 a b ));
+DATA(insert ( 25 2205 1079 i f ));
+DATA(insert ( 1043 2205 1079 i f ));
/*
* String category
*/
-DATA(insert ( 25 1042 0 i ));
-DATA(insert ( 25 1043 0 i ));
-DATA(insert ( 1042 25 401 i ));
-DATA(insert ( 1042 1043 401 i ));
-DATA(insert ( 1043 25 0 i ));
-DATA(insert ( 1043 1042 0 i ));
-DATA(insert ( 18 25 946 i ));
-DATA(insert ( 18 1042 860 a ));
-DATA(insert ( 18 1043 946 a ));
-DATA(insert ( 19 25 406 i ));
-DATA(insert ( 19 1042 408 a ));
-DATA(insert ( 19 1043 1401 a ));
-DATA(insert ( 25 18 944 a ));
-DATA(insert ( 1042 18 944 a ));
-DATA(insert ( 1043 18 944 a ));
-DATA(insert ( 25 19 407 i ));
-DATA(insert ( 1042 19 409 i ));
-DATA(insert ( 1043 19 1400 i ));
+DATA(insert ( 25 1042 0 i b ));
+DATA(insert ( 25 1043 0 i b ));
+DATA(insert ( 1042 25 401 i f ));
+DATA(insert ( 1042 1043 401 i f ));
+DATA(insert ( 1043 25 0 i b ));
+DATA(insert ( 1043 1042 0 i b ));
+DATA(insert ( 18 25 946 i f ));
+DATA(insert ( 18 1042 860 a f ));
+DATA(insert ( 18 1043 946 a f ));
+DATA(insert ( 19 25 406 i f ));
+DATA(insert ( 19 1042 408 a f ));
+DATA(insert ( 19 1043 1401 a f ));
+DATA(insert ( 25 18 944 a f ));
+DATA(insert ( 1042 18 944 a f ));
+DATA(insert ( 1043 18 944 a f ));
+DATA(insert ( 25 19 407 i f ));
+DATA(insert ( 1042 19 409 i f ));
+DATA(insert ( 1043 19 1400 i f ));
/* Allow explicit coercions between int4 and "char" */
-DATA(insert ( 18 23 77 e ));
-DATA(insert ( 23 18 78 e ));
+DATA(insert ( 18 23 77 e f ));
+DATA(insert ( 23 18 78 e f ));
/*
* Datetime category
*/
-DATA(insert ( 702 1082 1179 a ));
-DATA(insert ( 702 1083 1364 a ));
-DATA(insert ( 702 1114 2023 i ));
-DATA(insert ( 702 1184 1173 i ));
-DATA(insert ( 703 1186 1177 i ));
-DATA(insert ( 1082 1114 2024 i ));
-DATA(insert ( 1082 1184 1174 i ));
-DATA(insert ( 1083 1186 1370 i ));
-DATA(insert ( 1083 1266 2047 i ));
-DATA(insert ( 1114 702 2030 a ));
-DATA(insert ( 1114 1082 2029 a ));
-DATA(insert ( 1114 1083 1316 a ));
-DATA(insert ( 1114 1184 2028 i ));
-DATA(insert ( 1184 702 1180 a ));
-DATA(insert ( 1184 1082 1178 a ));
-DATA(insert ( 1184 1083 2019 a ));
-DATA(insert ( 1184 1114 2027 a ));
-DATA(insert ( 1184 1266 1388 a ));
-DATA(insert ( 1186 703 1194 a ));
-DATA(insert ( 1186 1083 1419 a ));
-DATA(insert ( 1266 1083 2046 a ));
+DATA(insert ( 702 1082 1179 a f ));
+DATA(insert ( 702 1083 1364 a f ));
+DATA(insert ( 702 1114 2023 i f ));
+DATA(insert ( 702 1184 1173 i f ));
+DATA(insert ( 703 1186 1177 i f ));
+DATA(insert ( 1082 1114 2024 i f ));
+DATA(insert ( 1082 1184 1174 i f ));
+DATA(insert ( 1083 1186 1370 i f ));
+DATA(insert ( 1083 1266 2047 i f ));
+DATA(insert ( 1114 702 2030 a f ));
+DATA(insert ( 1114 1082 2029 a f ));
+DATA(insert ( 1114 1083 1316 a f ));
+DATA(insert ( 1114 1184 2028 i f ));
+DATA(insert ( 1184 702 1180 a f ));
+DATA(insert ( 1184 1082 1178 a f ));
+DATA(insert ( 1184 1083 2019 a f ));
+DATA(insert ( 1184 1114 2027 a f ));
+DATA(insert ( 1184 1266 1388 a f ));
+DATA(insert ( 1186 703 1194 a f ));
+DATA(insert ( 1186 1083 1419 a f ));
+DATA(insert ( 1266 1083 2046 a f ));
/* Cross-category casts between int4 and abstime, reltime */
-DATA(insert ( 23 702 0 e ));
-DATA(insert ( 702 23 0 e ));
-DATA(insert ( 23 703 0 e ));
-DATA(insert ( 703 23 0 e ));
+DATA(insert ( 23 702 0 e b ));
+DATA(insert ( 702 23 0 e b ));
+DATA(insert ( 23 703 0 e b ));
+DATA(insert ( 703 23 0 e b ));
/*
* Geometric category
*/
-DATA(insert ( 601 600 1532 e ));
-DATA(insert ( 602 600 1533 e ));
-DATA(insert ( 602 604 1449 a ));
-DATA(insert ( 603 600 1534 e ));
-DATA(insert ( 603 601 1541 e ));
-DATA(insert ( 603 604 1448 a ));
-DATA(insert ( 603 718 1479 e ));
-DATA(insert ( 604 600 1540 e ));
-DATA(insert ( 604 602 1447 a ));
-DATA(insert ( 604 603 1446 e ));
-DATA(insert ( 604 718 1474 e ));
-DATA(insert ( 718 600 1416 e ));
-DATA(insert ( 718 603 1480 e ));
-DATA(insert ( 718 604 1544 e ));
+DATA(insert ( 601 600 1532 e f ));
+DATA(insert ( 602 600 1533 e f ));
+DATA(insert ( 602 604 1449 a f ));
+DATA(insert ( 603 600 1534 e f ));
+DATA(insert ( 603 601 1541 e f ));
+DATA(insert ( 603 604 1448 a f ));
+DATA(insert ( 603 718 1479 e f ));
+DATA(insert ( 604 600 1540 e f ));
+DATA(insert ( 604 602 1447 a f ));
+DATA(insert ( 604 603 1446 e f ));
+DATA(insert ( 604 718 1474 e f ));
+DATA(insert ( 718 600 1416 e f ));
+DATA(insert ( 718 603 1480 e f ));
+DATA(insert ( 718 604 1544 e f ));
/*
* INET category
*/
-DATA(insert ( 650 869 0 i ));
-DATA(insert ( 869 650 1715 a ));
+DATA(insert ( 650 869 0 i b ));
+DATA(insert ( 869 650 1715 a f ));
/*
* BitString category
*/
-DATA(insert ( 1560 1562 0 i ));
-DATA(insert ( 1562 1560 0 i ));
+DATA(insert ( 1560 1562 0 i b ));
+DATA(insert ( 1562 1560 0 i b ));
/* Cross-category casts between bit and int4, int8 */
-DATA(insert ( 20 1560 2075 e ));
-DATA(insert ( 23 1560 1683 e ));
-DATA(insert ( 1560 20 2076 e ));
-DATA(insert ( 1560 23 1684 e ));
+DATA(insert ( 20 1560 2075 e f ));
+DATA(insert ( 23 1560 1683 e f ));
+DATA(insert ( 1560 20 2076 e f ));
+DATA(insert ( 1560 23 1684 e f ));
/*
* Cross-category casts to and from TEXT
* behavior will ensue when the automatic cast is applied instead of the
* pg_cast entry!
*/
-DATA(insert ( 650 25 730 a ));
-DATA(insert ( 869 25 730 a ));
-DATA(insert ( 16 25 2971 a ));
-DATA(insert ( 142 25 0 a ));
-DATA(insert ( 25 142 2896 e ));
+DATA(insert ( 650 25 730 a f ));
+DATA(insert ( 869 25 730 a f ));
+DATA(insert ( 16 25 2971 a f ));
+DATA(insert ( 142 25 0 a b ));
+DATA(insert ( 25 142 2896 e f ));
/*
* Cross-category casts to and from VARCHAR
*
* We support all the same casts as for TEXT.
*/
-DATA(insert ( 650 1043 730 a ));
-DATA(insert ( 869 1043 730 a ));
-DATA(insert ( 16 1043 2971 a ));
-DATA(insert ( 142 1043 0 a ));
-DATA(insert ( 1043 142 2896 e ));
+DATA(insert ( 650 1043 730 a f ));
+DATA(insert ( 869 1043 730 a f ));
+DATA(insert ( 16 1043 2971 a f ));
+DATA(insert ( 142 1043 0 a b ));
+DATA(insert ( 1043 142 2896 e f ));
/*
* Cross-category casts to and from BPCHAR
*
* We support all the same casts as for TEXT.
*/
-DATA(insert ( 650 1042 730 a ));
-DATA(insert ( 869 1042 730 a ));
-DATA(insert ( 16 1042 2971 a ));
-DATA(insert ( 142 1042 0 a ));
-DATA(insert ( 1042 142 2896 e ));
+DATA(insert ( 650 1042 730 a f ));
+DATA(insert ( 869 1042 730 a f ));
+DATA(insert ( 16 1042 2971 a f ));
+DATA(insert ( 142 1042 0 a b ));
+DATA(insert ( 1042 142 2896 e f ));
/*
* Length-coercion functions
*/
-DATA(insert ( 1042 1042 668 i ));
-DATA(insert ( 1043 1043 669 i ));
-DATA(insert ( 1083 1083 1968 i ));
-DATA(insert ( 1114 1114 1961 i ));
-DATA(insert ( 1184 1184 1967 i ));
-DATA(insert ( 1186 1186 1200 i ));
-DATA(insert ( 1266 1266 1969 i ));
-DATA(insert ( 1560 1560 1685 i ));
-DATA(insert ( 1562 1562 1687 i ));
-DATA(insert ( 1700 1700 1703 i ));
+DATA(insert ( 1042 1042 668 i f ));
+DATA(insert ( 1043 1043 669 i f ));
+DATA(insert ( 1083 1083 1968 i f ));
+DATA(insert ( 1114 1114 1961 i f ));
+DATA(insert ( 1184 1184 1967 i f ));
+DATA(insert ( 1186 1186 1200 i f ));
+DATA(insert ( 1266 1266 1969 i f ));
+DATA(insert ( 1560 1560 1685 i f ));
+DATA(insert ( 1562 1562 1687 i f ));
+DATA(insert ( 1700 1700 1703 i f ));
#endif /* PG_CAST_H */