]> granicus.if.org Git - postgresql/commitdiff
Cleanup for func args > 8.
authorBruce Momjian <bruce@momjian.us>
Mon, 10 Jan 2000 20:23:31 +0000 (20:23 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 10 Jan 2000 20:23:31 +0000 (20:23 +0000)
src/backend/catalog/pg_type.c
src/backend/utils/Gen_fmgrtab.sh.in
src/include/catalog/pg_type.h
src/include/config.h.in

index b7226146b9d4ed990a6cc50f3704f121c78dc292..2b9e9d6eccd82e73ce1c511e12c9115711cb1c4d 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.45 2000/01/10 17:14:31 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.46 2000/01/10 20:23:28 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -373,7 +373,7 @@ TypeCreate(char *typeName,
        values[i++] = (Datum) GetUserId();      /* 2 */
        values[i++] = (Datum) internalSize; /* 3 */
        values[i++] = (Datum) externalSize; /* 4 */
-       values[i++] = (Datum) passedByValue;            /* 5 */
+       values[i++] = (Datum) passedByValue;/* 5 */
        values[i++] = (Datum) typeType;         /* 6 */
        values[i++] = (Datum) (bool) 1;         /* 7 */
        values[i++] = (Datum) typDelim;         /* 8 */
index ec60faa83d9d1e81f467cd74ec5f5f7f39c30b02..7325b705c08d4cf60a37d6c235e9c33cb3783930 100644 (file)
@@ -8,7 +8,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.16 1999/07/15 23:03:25 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.17 2000/01/10 20:23:29 momjian Exp $
 #
 # NOTES
 #    Passes any -D options on to cpp prior to generating the list
@@ -83,7 +83,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: Gen_fmgrtab.sh.in,v 1.16 1999/07/15 23:03:25 momjian Exp $
+ * $Id: Gen_fmgrtab.sh.in,v 1.17 2000/01/10 20:23:29 momjian Exp $
  *
  * NOTES
  *     ******************************
@@ -107,10 +107,8 @@ cat > $HFILE <<FuNkYfMgRsTuFf
  *         arguments from the user level since the catalogs only 
  *         store 8 argument type values for type-checking ...
  */
-#define        MAXFMGRARGS     9
-
 typedef struct {
-    char *data[MAXFMGRARGS];
+    char *data[FUNC_MAX_ARGS+1];  /* function name is arg0 */
 } FmgrValues;
 
 typedef struct {
@@ -206,7 +204,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.16 1999/07/15 23:03:25 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.17 2000/01/10 20:23:29 momjian Exp $
  *
  * NOTES
  *
index b3f9952bd574fbc9b4560863b13db2d154af804d..bf10fe385f27cf9bd3c534b969987fd078eb741a 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: pg_type.h,v 1.73 2000/01/10 16:13:21 momjian Exp $
+ * $Id: pg_type.h,v 1.74 2000/01/10 20:23:31 momjian Exp $
  *
  * NOTES
  *       the genbki.sh script reads this file and generates .bki
@@ -47,7 +47,6 @@ CATALOG(pg_type) BOOTSTRAP
         * is -1.
         */
        int2            typprtlen;
-       bool            typbyval;
 
        /*
         * typbyval determines whether internal Postgres routines pass a value
@@ -59,6 +58,7 @@ CATALOG(pg_type) BOOTSTRAP
         * even if the length would allow pass-by-value; this is currently
         * true for type float4, for example.
         */
+       bool            typbyval;
        char            typtype;
 
        /*
@@ -174,8 +174,8 @@ DATA(insert OID = 21 (      int2       PGUID  2   5 t b t \054 0   0 int2in int2out int2
 DESCR("-32 thousand to 32 thousand, 2-byte storage");
 #define INT2OID                        21
 
-DATA(insert OID = 22 ( int2vector PGUID 16  50 f b t \054 0  21 int2vectorin int2vectorout int2vectorin int2vectorout i _null_ ));
-DESCR("8 int2 integers, used internally");
+DATA(insert OID = 22 ( int2vector PGUID 32  113 f b t \054 0  21 int2vectorin int2vectorout int2vectorin int2vectorout i _null_ ));
+DESCR("16 int2 integers, used internally");
 /*
  * XXX -- the implementation of int2vector's in postgres is a hack, and will
  *               go away someday.      until that happens, there is a case (in the
@@ -213,8 +213,8 @@ DATA(insert OID = 29 (      cid                PGUID  4  10 t b t \054 0   0 cidin cidout cidin
 DESCR("command identifier type, sequence in transaction id");
 #define CIDOID 29
 
-DATA(insert OID = 30 ( oidvector  PGUID 32  89 f b t \054 0  26 oidvectorin oidvectorout oidvectorin oidvectorout i _null_ ));
-DESCR("array of 8 oids, used in system tables");
+DATA(insert OID = 30 ( oidvector  PGUID 64  193 f b t \054 0  26 oidvectorin oidvectorout oidvectorin oidvectorout i _null_ ));
+DESCR("array of 16 oids, used in system tables");
 DATA(insert OID = 32 ( SET                PGUID -1  -1 f b t \054 0   0 textin textout textin textout i _null_ ));
 DESCR("set of tuples");
 
index ac546ff5123f93664a5cdca7596823c4f3ba5727..9ec12b5d196af38e7ce09d34da5847809019d8cc 100644 (file)
  * pgsql/src/backend/utils/fmgr/fmgr.c and add additional entries 
  * to the 'case' statement for the additional arguments.
  */
-#define INDEX_MAX_KEYS         8
+#define INDEX_MAX_KEYS         16
 #define FUNC_MAX_ARGS          INDEX_MAX_KEYS
 
 /*