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
8076c8c7
Commit
8076c8c7
authored
Feb 06, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Come to think of it, we should check that commutator pairs have the same
merges/hashes property settings.
parent
b259924e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
src/test/regress/expected/opr_sanity.out
src/test/regress/expected/opr_sanity.out
+10
-0
src/test/regress/sql/opr_sanity.sql
src/test/regress/sql/opr_sanity.sql
+8
-0
No files found.
src/test/regress/expected/opr_sanity.out
View file @
8076c8c7
...
...
@@ -382,6 +382,16 @@ WHERE (p1.oprcanmerge OR p1.oprcanhash) AND NOT
-----+---------
(0 rows)
-- What's more, the commutator had better be mergejoinable/hashjoinable too.
SELECT p1.oid, p1.oprname, p2.oid, p2.oprname
FROM pg_operator AS p1, pg_operator AS p2
WHERE p1.oprcom = p2.oid AND
(p1.oprcanmerge != p2.oprcanmerge OR
p1.oprcanhash != p2.oprcanhash);
oid | oprname | oid | oprname
-----+---------+-----+---------
(0 rows)
-- Mergejoinable operators should appear as equality members of btree index
-- opfamilies.
SELECT p1.oid, p1.oprname
...
...
src/test/regress/sql/opr_sanity.sql
View file @
8076c8c7
...
...
@@ -315,6 +315,14 @@ SELECT p1.oid, p1.oprname FROM pg_operator AS p1
WHERE
(
p1
.
oprcanmerge
OR
p1
.
oprcanhash
)
AND
NOT
(
p1
.
oprkind
=
'b'
AND
p1
.
oprresult
=
'bool'
::
regtype
AND
p1
.
oprcom
!=
0
);
-- What's more, the commutator had better be mergejoinable/hashjoinable too.
SELECT
p1
.
oid
,
p1
.
oprname
,
p2
.
oid
,
p2
.
oprname
FROM
pg_operator
AS
p1
,
pg_operator
AS
p2
WHERE
p1
.
oprcom
=
p2
.
oid
AND
(
p1
.
oprcanmerge
!=
p2
.
oprcanmerge
OR
p1
.
oprcanhash
!=
p2
.
oprcanhash
);
-- Mergejoinable operators should appear as equality members of btree index
-- opfamilies.
...
...
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