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

Commited6998d

Browse files
committed
Re-add pg_index.indhaskeytype.
1 parentf756acf commited6998d

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

‎src/backend/access/gist/gist.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.74 2001/05/14 21:53:16 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.75 2001/05/15 03:49:34 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -1127,6 +1127,7 @@ initGISTstate(GISTSTATE *giststate, Relation index)
11271127
elog(ERROR,"initGISTstate: index %u not found",
11281128
RelationGetRelid(index));
11291129
itupform= (Form_pg_index)GETSTRUCT(htup);
1130+
giststate->haskeytype=itupform->indhaskeytype;
11301131
indexrelid=itupform->indexrelid;
11311132
ReleaseSysCache(htup);
11321133

‎src/backend/catalog/index.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.148 2001/05/1501:12:58 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.149 2001/05/1503:49:34 momjian Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -589,6 +589,7 @@ UpdateIndexRelation(Oid indexoid,
589589
indexForm->indproc=indexInfo->ii_FuncOid;
590590
indexForm->indisclustered= false;/* not used */
591591
indexForm->indislossy=islossy;
592+
indexForm->indhaskeytype= true;/* used by GIST */
592593
indexForm->indisunique=indexInfo->ii_Unique;
593594
indexForm->indisprimary=primary;
594595
memcpy((char*)&indexForm->indpred, (char*)predText,predLen);

‎src/include/catalog/catversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
3838
* Portions Copyright (c) 1994, Regents of the University of California
3939
*
40-
* $Id: catversion.h,v 1.77 2001/05/1501:12:59 momjian Exp $
40+
* $Id: catversion.h,v 1.78 2001/05/1503:49:35 momjian Exp $
4141
*
4242
*-------------------------------------------------------------------------
4343
*/
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO200105144
56+
#defineCATALOG_VERSION_NO200105145
5757

5858
#endif

‎src/include/catalog/pg_index.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_index.h,v 1.18 2001/05/1501:12:59 momjian Exp $
11+
* $Id: pg_index.h,v 1.19 2001/05/1503:49:35 momjian Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -73,17 +73,18 @@ typedef FormData_pg_index *Form_pg_index;
7373
*compiler constants for pg_index
7474
* ----------------
7575
*/
76-
#defineNatts_pg_index11
76+
#defineNatts_pg_index12
7777
#defineAnum_pg_index_indexrelid1
7878
#defineAnum_pg_index_indrelid2
7979
#defineAnum_pg_index_indproc3
8080
#defineAnum_pg_index_indkey4
8181
#defineAnum_pg_index_indclass5
8282
#defineAnum_pg_index_indisclustered6
8383
#defineAnum_pg_index_indislossy7
84-
#defineAnum_pg_index_indisunique8
85-
#defineAnum_pg_index_indisprimary9
86-
#defineAnum_pg_index_indreference10
87-
#defineAnum_pg_index_indpred11
84+
#defineAnum_pg_index_indhaskeytype8
85+
#defineAnum_pg_index_indisunique9
86+
#defineAnum_pg_index_indisprimary10
87+
#defineAnum_pg_index_indreference11
88+
#defineAnum_pg_index_indpred12
8889

8990
#endif/* PG_INDEX_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp