Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b932b1b1
Commit
b932b1b1
authored
Sep 23, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow 8-key indexes.
parent
747e19aa
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
21 deletions
+21
-21
src/backend/access/index/istrat.c
src/backend/access/index/istrat.c
+2
-2
src/backend/catalog/indexing.c
src/backend/catalog/indexing.c
+2
-2
src/backend/commands/cluster.c
src/backend/commands/cluster.c
+2
-2
src/backend/commands/copy.c
src/backend/commands/copy.c
+2
-2
src/backend/commands/defind.c
src/backend/commands/defind.c
+2
-2
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+2
-2
src/backend/executor/execUtils.c
src/backend/executor/execUtils.c
+4
-4
src/backend/optimizer/util/plancat.c
src/backend/optimizer/util/plancat.c
+3
-3
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+2
-2
No files found.
src/backend/access/index/istrat.c
View file @
b932b1b1
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.2
8 1998/09/01 04:26:56
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.2
9 1998/09/23 04:21:57
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -583,7 +583,7 @@ IndexSupportInitialize(IndexStrategy indexStrategy,
if
(
!
OidIsValid
(
iform
->
indkey
[
attributeIndex
]))
{
if
(
attributeIndex
==
0
)
if
(
attributeIndex
==
InvalidAttrNumber
)
elog
(
ERROR
,
"IndexSupportInitialize: no pg_index tuple"
);
break
;
}
...
...
src/backend/catalog/indexing.c
View file @
b932b1b1
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.3
1 1998/09/07 05:35:3
9 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.3
2 1998/09/23 04:21:5
9 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -137,7 +137,7 @@ CatalogIndexInsert(Relation *idescs,
* Compute the number of attributes we are indexing upon.
*/
for
(
attnumP
=
index_form
->
indkey
,
fatts
=
0
;
*
attnumP
!=
InvalidAttrNumber
&&
fatts
<
INDEX_MAX_KEYS
;
fatts
<
INDEX_MAX_KEYS
&&
*
attnumP
!=
InvalidAttrNumber
;
attnumP
++
,
fatts
++
)
;
FIgetnArgs
(
&
finfo
)
=
fatts
;
...
...
src/backend/commands/cluster.c
View file @
b932b1b1
...
...
@@ -14,7 +14,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.3
1 1998/09/01 04:27:44
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.3
2 1998/09/23 04:22:01
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -282,7 +282,7 @@ copy_index(Oid OIDOldIndex, Oid OIDNewHeap)
* got to be sure.
*/
for
(
attnumP
=
&
(
Old_pg_index_Form
->
indkey
[
0
]),
natts
=
0
;
*
attnumP
!=
InvalidAttrNumber
;
natts
<
INDEX_MAX_KEYS
&&
*
attnumP
!=
InvalidAttrNumber
;
attnumP
++
,
natts
++
);
/*
...
...
src/backend/commands/copy.c
View file @
b932b1b1
...
...
@@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.6
1 1998/09/08 22:15:4
2 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.6
2 1998/09/23 04:22:0
2 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -453,7 +453,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
Assert
(
pgIndexTup
);
pgIndexP
[
i
]
=
(
Form_pg_index
)
GETSTRUCT
(
pgIndexTup
);
for
(
attnumP
=
&
(
pgIndexP
[
i
]
->
indkey
[
0
]),
natts
=
0
;
*
attnumP
!=
InvalidAttrNumber
;
natts
<
INDEX_MAX_KEYS
&&
*
attnumP
!=
InvalidAttrNumber
;
attnumP
++
,
natts
++
);
if
(
pgIndexP
[
i
]
->
indproc
!=
InvalidOid
)
{
...
...
src/backend/commands/defind.c
View file @
b932b1b1
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.2
6 1998/09/01 04:27:52
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.2
7 1998/09/23 04:22:03
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -274,7 +274,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable)
indproc
=
index
->
indproc
;
for
(
i
=
0
;
i
<
INDEX_MAX_KEYS
;
i
++
)
if
(
index
->
indkey
[
i
]
==
0
)
if
(
index
->
indkey
[
i
]
==
InvalidAttrNumber
)
break
;
numberOfAttributes
=
i
;
...
...
src/backend/commands/vacuum.c
View file @
b932b1b1
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.8
1 1998/09/02 23:05:2
5 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.8
2 1998/09/23 04:22:0
5 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2227,7 +2227,7 @@ vc_mkindesc(Relation onerel, int nindices, Relation *Irel, IndDesc **Idesc)
*/
idcur
->
tform
=
(
Form_pg_index
)
GETSTRUCT
(
cachetuple
);
for
(
attnumP
=
&
(
idcur
->
tform
->
indkey
[
0
]),
natts
=
0
;
*
attnumP
!=
InvalidAttrNumber
&&
natts
!=
INDEX_MAX_KEYS
;
natts
<
INDEX_MAX_KEYS
&&
*
attnumP
!=
InvalidAttrNumber
;
attnumP
++
,
natts
++
);
if
(
idcur
->
tform
->
indproc
!=
InvalidOid
)
{
...
...
src/backend/executor/execUtils.c
View file @
b932b1b1
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.3
8 1998/09/01 04:28:22
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.3
9 1998/09/23 04:22:06
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -629,7 +629,8 @@ ExecGetIndexKeyInfo(Form_pg_index indexTuple,
* ----------------
*/
numKeys
=
0
;
for
(
i
=
0
;
i
<
8
&&
indexTuple
->
indkey
[
i
]
!=
0
;
i
++
)
for
(
i
=
0
;
i
<
INDEX_MAX_KEYS
&&
indexTuple
->
indkey
[
i
]
!=
InvalidAttrNumber
;
i
++
)
numKeys
++
;
/* ----------------
...
...
@@ -663,8 +664,7 @@ ExecGetIndexKeyInfo(Form_pg_index indexTuple,
*/
CXT1_printf
(
"ExecGetIndexKeyInfo: context is %d
\n
"
,
CurrentMemoryContext
);
attKeys
=
(
AttrNumber
*
)
palloc
(
numKeys
*
sizeof
(
AttrNumber
));
attKeys
=
(
AttrNumber
*
)
palloc
(
numKeys
*
sizeof
(
AttrNumber
));
for
(
i
=
0
;
i
<
numKeys
;
i
++
)
attKeys
[
i
]
=
indexTuple
->
indkey
[
i
];
...
...
src/backend/optimizer/util/plancat.c
View file @
b932b1b1
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.2
1 1998/09/01 04:30:09
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.2
2 1998/09/23 04:22:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -165,9 +165,9 @@ index_info(Query *root, bool first, int relid, IdxInfoRetval *info)
/* Extract info from the index tuple */
index
=
(
Form_pg_index
)
GETSTRUCT
(
indexTuple
);
info
->
relid
=
index
->
indexrelid
;
/* index relation */
for
(
i
=
0
;
i
<
8
;
i
++
)
for
(
i
=
0
;
i
<
INDEX_MAX_KEYS
;
i
++
)
info
->
indexkeys
[
i
]
=
index
->
indkey
[
i
];
for
(
i
=
0
;
i
<
8
;
i
++
)
for
(
i
=
0
;
i
<
INDEX_MAX_KEYS
;
i
++
)
info
->
classlist
[
i
]
=
index
->
indclass
[
i
];
info
->
indproc
=
index
->
indproc
;
/* functional index ?? */
...
...
src/bin/pg_dump/pg_dump.c
View file @
b932b1b1
...
...
@@ -21,7 +21,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.8
5 1998/09/20 03:18:43
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.8
6 1998/09/23 04:22:14
momjian Exp $
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
...
...
@@ -2649,7 +2649,7 @@ dumpIndices(FILE *fout, IndInfo *indinfo, int numIndices,
char
*
attname
;
indkey
=
atoi
(
indinfo
[
i
].
indkey
[
k
]);
if
(
indkey
==
0
)
if
(
indkey
==
InvalidAttrNumber
)
break
;
indkey
--
;
if
(
indkey
==
ObjectIdAttributeNumber
-
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment