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
d998fac9
Commit
d998fac9
authored
May 29, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a regression test to catch future silliness in the index-building
area...
parent
f3707d07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/test/regress/expected/create_index.out
src/test/regress/expected/create_index.out
+7
-0
src/test/regress/sql/create_index.sql
src/test/regress/sql/create_index.sql
+8
-0
No files found.
src/test/regress/expected/create_index.out
View file @
d998fac9
...
...
@@ -95,3 +95,10 @@ INSERT INTO func_index_heap VALUES('ABCD', 'EF');
ERROR: Cannot insert a duplicate key into unique index func_index_index
-- but this shouldn't:
INSERT INTO func_index_heap VALUES('QWERTY');
--
-- Also try building functional, expressional, and partial indexes on
-- tables that already contain data.
--
create unique index hash_f8_index_1 on hash_f8_heap(abs(random));
create unique index hash_f8_index_2 on hash_f8_heap((seqno + 1), random);
create unique index hash_f8_index_3 on hash_f8_heap(random) where seqno > 1000;
src/test/regress/sql/create_index.sql
View file @
d998fac9
...
...
@@ -120,3 +120,11 @@ INSERT INTO func_index_heap VALUES('QWE','RTY');
INSERT
INTO
func_index_heap
VALUES
(
'ABCD'
,
'EF'
);
-- but this shouldn't:
INSERT
INTO
func_index_heap
VALUES
(
'QWERTY'
);
--
-- Also try building functional, expressional, and partial indexes on
-- tables that already contain data.
--
create
unique
index
hash_f8_index_1
on
hash_f8_heap
(
abs
(
random
));
create
unique
index
hash_f8_index_2
on
hash_f8_heap
((
seqno
+
1
),
random
);
create
unique
index
hash_f8_index_3
on
hash_f8_heap
(
random
)
where
seqno
>
1000
;
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