Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
4bd50068
Commit
4bd50068
authored
24 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add index on pg_index.indrelid for Tom Lane.
parent
5b9d0d9a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/catalog/indexing.c
+2
-2
2 additions, 2 deletions
src/backend/catalog/indexing.c
src/backend/utils/cache/syscache.c
+2
-2
2 additions, 2 deletions
src/backend/utils/cache/syscache.c
src/include/catalog/indexing.h
+5
-2
5 additions, 2 deletions
src/include/catalog/indexing.h
with
9 additions
and
6 deletions
src/backend/catalog/indexing.c
+
2
−
2
View file @
4bd50068
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.6
2
2000/0
5/30
0
0
:4
9:42
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.6
3
2000/0
6/07
0
2
:4
4:35
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -45,7 +45,7 @@ char *Name_pg_class_indices[Num_pg_class_indices] =
char
*
Name_pg_group_indices
[
Num_pg_group_indices
]
=
{
GroupNameIndex
,
GroupSysidIndex
};
char
*
Name_pg_index_indices
[
Num_pg_index_indices
]
=
{
IndexRelidIndex
};
{
IndexRelidIndex
,
IndexIndrelidIndex
};
char
*
Name_pg_inherits_indices
[
Num_pg_inherits_indices
]
=
{
InheritsRelidSeqnoIndex
};
char
*
Name_pg_language_indices
[
Num_pg_language_indices
]
=
...
...
This diff is collapsed.
Click to expand it.
src/backend/utils/cache/syscache.c
+
2
−
2
View file @
4bd50068
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.5
1
2000/06/0
6 17:02:38 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.5
2
2000/06/0
7 02:44:37 momjian
Exp $
*
* NOTES
* These routines allow the parser/planner/executor to perform
...
...
@@ -71,7 +71,7 @@ typedef HeapTuple (*ScanFunc) ();
In backend/catalog/indexing.c, initialize the relation array with
the index names for the relation, fixed size of relation (or marking
first non-fixed length field), and create the index lookup function.
Pick one that
take
s similar arguments and use that one, but keep the
Pick one that
ha
s similar arguments and use that one, but keep the
function names in the same order as the cache list for clarity.
Finally, any place your relation gets heap_insert() or
...
...
This diff is collapsed.
Click to expand it.
src/include/catalog/indexing.h
+
5
−
2
View file @
4bd50068
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: indexing.h,v 1.3
7
2000/0
4/12 17:16:27
momjian Exp $
* $Id: indexing.h,v 1.3
8
2000/0
6/07 02:44:40
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -28,7 +28,7 @@
#define Num_pg_class_indices 2
#define Num_pg_description_indices 1
#define Num_pg_group_indices 2
#define Num_pg_index_indices
1
#define Num_pg_index_indices
2
#define Num_pg_inherits_indices 1
#define Num_pg_language_indices 2
#define Num_pg_listener_indices 1
...
...
@@ -58,6 +58,7 @@
#define DescriptionObjIndex "pg_description_objoid_index"
#define GroupNameIndex "pg_group_name_index"
#define GroupSysidIndex "pg_group_sysid_index"
#define IndexIndrelidIndex "pg_index_indrelid_index"
#define IndexRelidIndex "pg_index_indexrelid_index"
#define InheritsRelidSeqnoIndex "pg_inherits_relid_seqno_index"
#define LanguageNameIndex "pg_language_name_index"
...
...
@@ -183,6 +184,8 @@ DECLARE_UNIQUE_INDEX(pg_class_relname_index on pg_class using btree(relname name
DECLARE_UNIQUE_INDEX
(
pg_description_objoid_index
on
pg_description
using
btree
(
objoid
oid_ops
));
DECLARE_UNIQUE_INDEX
(
pg_group_name_index
on
pg_group
using
btree
(
groname
name_ops
));
DECLARE_UNIQUE_INDEX
(
pg_group_sysid_index
on
pg_group
using
btree
(
grosysid
int4_ops
));
/* This following index is not used for a cache and is not unique */
DECLARE_INDEX
(
pg_index_indrelid_index
on
pg_index
using
btree
(
indrelid
oid_ops
));
DECLARE_UNIQUE_INDEX
(
pg_index_indexrelid_index
on
pg_index
using
btree
(
indexrelid
oid_ops
));
DECLARE_UNIQUE_INDEX
(
pg_inherits_relid_seqno_index
on
pg_inherits
using
btree
(
inhrelid
oid_ops
,
inhseqno
int4_ops
));
DECLARE_UNIQUE_INDEX
(
pg_language_name_index
on
pg_language
using
btree
(
lanname
name_ops
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment