Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd8b0e6

Browse files
committed
Cleanup for func args > 8.
1 parent2d920dc commitdd8b0e6

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

‎src/backend/catalog/pg_type.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.45 2000/01/1017:14:31 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.46 2000/01/1020:23:28 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -373,7 +373,7 @@ TypeCreate(char *typeName,
373373
values[i++]= (Datum)GetUserId();/* 2 */
374374
values[i++]= (Datum)internalSize;/* 3 */
375375
values[i++]= (Datum)externalSize;/* 4 */
376-
values[i++]= (Datum)passedByValue;/* 5 */
376+
values[i++]= (Datum)passedByValue;/* 5 */
377377
values[i++]= (Datum)typeType;/* 6 */
378378
values[i++]= (Datum) (bool)1;/* 7 */
379379
values[i++]= (Datum)typDelim;/* 8 */

‎src/backend/utils/Gen_fmgrtab.sh.in

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.16 1999/07/1523:03:25 momjian Exp $
11+
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.17 2000/01/10 20:23:29 momjian Exp $
1212
#
1313
# NOTES
1414
# Passes any -D options on to cpp prior to generating the list
@@ -83,7 +83,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
8383
*
8484
* Copyright (c) 1994, Regents of the University of California
8585
*
86-
*$Id: Gen_fmgrtab.sh.in,v 1.16 1999/07/1523:03:25 momjian Exp $
86+
*$Id: Gen_fmgrtab.sh.in,v 1.17 2000/01/10 20:23:29 momjian Exp $
8787
*
8888
* NOTES
8989
*******************************
@@ -107,10 +107,8 @@ cat > $HFILE <<FuNkYfMgRsTuFf
107107
* arguments from the user level since the catalogs only
108108
* store 8 argument type values for type-checking ...
109109
*/
110-
#defineMAXFMGRARGS9
111-
112110
typedef struct {
113-
char *data[MAXFMGRARGS];
111+
char *data[FUNC_MAX_ARGS+1]; /* function name is arg0 */
114112
} FmgrValues;
115113
116114
typedef struct {
@@ -206,7 +204,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
206204
*
207205
*
208206
* IDENTIFICATION
209-
*$Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.16 1999/07/1523:03:25 momjian Exp $
207+
*$Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.17 2000/01/10 20:23:29 momjian Exp $
210208
*
211209
* NOTES
212210
*

‎src/include/catalog/pg_type.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_type.h,v 1.73 2000/01/1016:13:21 momjian Exp $
10+
* $Id: pg_type.h,v 1.74 2000/01/1020:23:31 momjian Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -47,7 +47,6 @@ CATALOG(pg_type) BOOTSTRAP
4747
* is -1.
4848
*/
4949
int2typprtlen;
50-
booltypbyval;
5150

5251
/*
5352
* typbyval determines whether internal Postgres routines pass a value
@@ -59,6 +58,7 @@ CATALOG(pg_type) BOOTSTRAP
5958
* even if the length would allow pass-by-value; this is currently
6059
* true for type float4, for example.
6160
*/
61+
booltypbyval;
6262
chartyptype;
6363

6464
/*
@@ -174,8 +174,8 @@ DATA(insert OID = 21 (int2 PGUID 2 5 t b t \054 0 0 int2in int2out int2
174174
DESCR("-32 thousand to 32 thousand, 2-byte storage");
175175
#defineINT2OID21
176176

177-
DATA(insertOID=22 (int2vectorPGUID1650fbt \054021int2vectorinint2vectoroutint2vectorinint2vectorouti_null_ ));
178-
DESCR("8 int2 integers, used internally");
177+
DATA(insertOID=22 (int2vectorPGUID32113fbt \054021int2vectorinint2vectoroutint2vectorinint2vectorouti_null_ ));
178+
DESCR("16 int2 integers, used internally");
179179
/*
180180
* XXX -- the implementation of int2vector's in postgres is a hack, and will
181181
* 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
213213
DESCR("command identifier type, sequence in transaction id");
214214
#defineCIDOID 29
215215

216-
DATA(insertOID=30 (oidvectorPGUID3289fbt \054026oidvectorinoidvectoroutoidvectorinoidvectorouti_null_ ));
217-
DESCR("array of8 oids, used in system tables");
216+
DATA(insertOID=30 (oidvectorPGUID64193fbt \054026oidvectorinoidvectoroutoidvectorinoidvectorouti_null_ ));
217+
DESCR("array of16 oids, used in system tables");
218218
DATA(insertOID=32 (SETPGUID-1-1fbt \05400textintextouttextintextouti_null_ ));
219219
DESCR("set of tuples");
220220

‎src/include/config.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
* pgsql/src/backend/utils/fmgr/fmgr.c and add additional entries
102102
* to the 'case' statement for the additional arguments.
103103
*/
104-
#defineINDEX_MAX_KEYS8
104+
#defineINDEX_MAX_KEYS16
105105
#defineFUNC_MAX_ARGSINDEX_MAX_KEYS
106106

107107
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp