*sigh* - it's really not my day today. Attached is patch that actually
compiles and fixes the problem. We will need to bump CATVERSION, and
maybe should test all the other qualified functions?
Chris
Index: src/include/catalog/pg_proc.h
===
RCS file: /projects/cvsroot/pgsql-server/src/include/catalog/pg_proc.h,v
retrieving revision 1.313
diff -c -r1.313 pg_proc.h
*** src/include/catalog/pg_proc.h 17 Aug 2003 19:58:06 - 1.313
--- src/include/catalog/pg_proc.h 21 Oct 2003 05:47:52 -
***
*** 1477,1483
DESCR("convert abstime to timestamp with time zone");
DATA(insert OID = 1174 ( timestamptzPGNSP PGUID 12 f f t f s 1 1184 "1082"
date_timestamptz - _null_ ));
DESCR("convert date to timestamp with time zone");
! DATA(insert OID = 1176 ( timestamptzPGNSP PGUID 14 f f t f s 2 1184 "1082 1083"
"select timestamptz($1 + $2)" - _null_ ));
DESCR("convert date and time to timestamp with time zone");
DATA(insert OID = 1177 ( interval PGNSP PGUID 12 f f t f i 1 1186
"703"reltime_interval - _null_ ));
DESCR("convert reltime to interval");
--- 1477,1483
DESCR("convert abstime to timestamp with time zone");
DATA(insert OID = 1174 ( timestamptzPGNSP PGUID 12 f f t f s 1 1184 "1082"
date_timestamptz - _null_ ));
DESCR("convert date to timestamp with time zone");
! DATA(insert OID = 1176 ( timestamptzPGNSP PGUID 14 f f t f s 2 1184 "1082 1083"
"select pg_catalog.timestamptz($1 + $2)" - _null_ ));
DESCR("convert date and time to timestamp with time zone");
DATA(insert OID = 1177 ( interval PGNSP PGUID 12 f f t f i 1 1186
"703"reltime_interval - _null_ ));
DESCR("convert reltime to interval");
***
*** 1520,1528
DATA(insert OID = 1200 ( intervalPGNSP PGUID 12 f f t f i 2
1186 "1186 23" interval_scale - _null_ ));
DESCR("adjust interval precision");
! DATA(insert OID = 1215 ( obj_description PGNSP PGUID 14 f f t f s 2 25 "26
19" "select description from pg_description where objoid = $1 and classoid =
(select oid from pg_class where relname = $2 and relnamespace = PGNSP) and objsubid =
0" - _null_ ));
DESCR("get description for object id and catalog name");
! DATA(insert OID = 1216 ( col_description PGNSP PGUID 14 f f t f s 2 25 "26
23" "select description from pg_description where objoid = $1 and classoid =
\'pg_catalog.pg_class\'::regclass and objsubid = $2" - _null_ ));
DESCR("get description for table column");
DATA(insert OID = 1217 ( date_trunc PGNSP PGUID 12 f f t f i 2 1184 "25 1184"
timestamptz_trunc - _null_ ));
--- 1520,1528
DATA(insert OID = 1200 ( intervalPGNSP PGUID 12 f f t f i 2
1186 "1186 23" interval_scale - _null_ ));
DESCR("adjust interval precision");
! DATA(insert OID = 1215 ( obj_description PGNSP PGUID 14 f f t f s 2 25 "26
19" "select description from pg_catalog.pg_description where objoid = $1 and
classoid = (select oid from pg_catalog.pg_class where relname = $2 and relnamespace =
PGNSP) and objsubid = 0" - _null_ ));
DESCR("get description for object id and catalog name");
! DATA(insert OID = 1216 ( col_description PGNSP PGUID 14 f f t f s 2 25 "26
23" "select description from pg_catalog.pg_description where objoid = $1 and
classoid = \'pg_catalog.pg_class\'::regclass and objsubid = $2" - _null_ ));
DESCR("get description for table column");
DATA(insert OID = 1217 ( date_trunc PGNSP PGUID 12 f f t f i 2 1184 "25 1184"
timestamptz_trunc - _null_ ));
***
*** 1683,1689
* This form of obj_description is now deprecated, since it will fail if
* OIDs are not unique across system catalogs.Use the other forms instead.
*/
! DATA(insert OID = 1348 ( obj_description PGNSP PGUID 14 f f t f s 1 25 "26"
"select description from pg_description where objoid = $1 and objsubid = 0" - _null_
));
DESCR("get description for object id (deprecated)");
DATA(insert OID = 1349 ( oidvectortypes PGNSP PGUID 12 f f t f s 1 25 "30"
oidvectortypes - _null_ ));
DESCR("print type names of oidvector field");
--- 1683,1689
* This form of obj_description is now deprecated, since it will fail if
* OIDs are not unique across system catalogs.Use the other forms instead.
*/
! DATA(insert OID = 1348 ( obj_description PGNSP PGUID 14 f f t f s 1 25 "26"
"select description from pg_catalog.pg_description where objoid = $1 and objsubid = 0"
- _null_ ));
DESCR("get description for object id (deprecated)");
DATA(insert OID = 1349 ( oidvectortypes PGNSP PGUID 12 f f t f s 1 25 "30"
oidvectortypes - _null_ ));
DESCR("print type names of oidvector field");
***
*** 1740,1754
DATA(insert OID = 1381 ( char_lengthPGNSP PGUID 1