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
ad7d3bdd
Commit
ad7d3bdd
authored
Aug 16, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make domain types indexable. Rod Taylor & Tom Lane.
parent
141539c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/backend/commands/indexcmds.c
src/backend/commands/indexcmds.c
+4
-1
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/ruleutils.c
+5
-1
No files found.
src/backend/commands/indexcmds.c
View file @
ad7d3bdd
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.8
3 2002/08/15 03:04:07 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.8
4 2002/08/16 20:55:09 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -482,6 +482,9 @@ GetDefaultOpClass(Oid attrType, Oid accessMethodId)
Oid
exactOid
=
InvalidOid
;
Oid
compatibleOid
=
InvalidOid
;
/* If it's a domain, look at the base type instead */
attrType
=
getBaseType
(
attrType
);
/*
* We scan through all the opclasses available for the access method,
* looking for one that is marked default and matches the target type
...
...
src/backend/utils/adt/ruleutils.c
View file @
ad7d3bdd
...
...
@@ -3,7 +3,7 @@
* back to source text
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.11
4 2002/08/08 17:00:1
9 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.11
5 2002/08/16 20:55:0
9 tgl Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -2660,6 +2660,10 @@ get_opclass_name(Oid opclass, Oid actual_datatype,
char
*
opcname
;
char
*
nspname
;
/* Domains use their base type's default opclass */
if
(
OidIsValid
(
actual_datatype
))
actual_datatype
=
getBaseType
(
actual_datatype
);
ht_opc
=
SearchSysCache
(
CLAOID
,
ObjectIdGetDatum
(
opclass
),
0
,
0
,
0
);
...
...
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