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
f9526f88
Commit
f9526f88
authored
Apr 27, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up misc.source and create *individual test* files ... trying to move
away from one big massive confusing file
parent
b63e57be
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
208 additions
and
1050 deletions
+208
-1050
src/test/regress/sql/btree_index.sql
src/test/regress/sql/btree_index.sql
+53
-0
src/test/regress/sql/hash_index.sql
src/test/regress/sql/hash_index.sql
+153
-0
src/test/regress/sql/misc.sql
src/test/regress/sql/misc.sql
+0
-1050
src/test/regress/sql/tests
src/test/regress/sql/tests
+2
-0
No files found.
src/test/regress/sql/btree_index.sql
0 → 100644
View file @
f9526f88
--
-- btree index
-- test retrieval of min/max keys for each
--
SELECT
b
.
*
FROM
bt_i4_heap
b
WHERE
b
.
seqno
<
1
;
SELECT
b
.
*
FROM
bt_i4_heap
b
WHERE
b
.
seqno
>=
9999
;
SELECT
b
.
*
FROM
bt_i4_heap
b
WHERE
b
.
seqno
=
4500
;
SELECT
b
.
*
FROM
bt_c16_heap
b
WHERE
b
.
seqno
<
'1'
::
char16
;
SELECT
b
.
*
FROM
bt_c16_heap
b
WHERE
b
.
seqno
>=
'9999'
::
char16
;
SELECT
b
.
*
FROM
bt_c16_heap
b
WHERE
b
.
seqno
=
'4500'
::
char16
;
SELECT
b
.
*
FROM
bt_txt_heap
b
WHERE
b
.
seqno
<
'1'
::
text
;
SELECT
b
.
*
FROM
bt_txt_heap
b
WHERE
b
.
seqno
>=
'9999'
::
text
;
SELECT
b
.
*
FROM
bt_txt_heap
b
WHERE
b
.
seqno
=
'4500'
::
text
;
SELECT
b
.
*
FROM
bt_f8_heap
b
WHERE
b
.
seqno
<
'1'
::
float8
;
SELECT
b
.
*
FROM
bt_f8_heap
b
WHERE
b
.
seqno
>=
'9999'
::
float8
;
SELECT
b
.
*
FROM
bt_f8_heap
b
WHERE
b
.
seqno
=
'4500'
::
float8
;
src/test/regress/sql/hash_index.sql
0 → 100644
View file @
f9526f88
--
-- hash index
-- grep 843938989 hash.data
--
SELECT
hash_i4_heap
.
*
WHERE
hash_i4_heap
.
random
=
843938989
;
--
-- hash index
-- grep 66766766 hash.data
--
SELECT
hash_i4_heap
.
*
WHERE
hash_i4_heap
.
random
=
66766766
;
--
-- hash index
-- grep 1505703298 hash.data
--
SELECT
hash_c16_heap
.
*
WHERE
hash_c16_heap
.
random
=
'1505703298'
::
char16
;
--
-- hash index
-- grep 7777777 hash.data
--
SELECT
hash_c16_heap
.
*
WHERE
hash_c16_heap
.
random
=
'7777777'
::
char16
;
--
-- hash index
-- grep 1351610853 hash.data
--
SELECT
hash_txt_heap
.
*
WHERE
hash_txt_heap
.
random
=
'1351610853'
::
text
;
--
-- hash index
-- grep 111111112222222233333333 hash.data
--
SELECT
hash_txt_heap
.
*
WHERE
hash_txt_heap
.
random
=
'111111112222222233333333'
::
text
;
--
-- hash index
-- grep 444705537 hash.data
--
SELECT
hash_f8_heap
.
*
WHERE
hash_f8_heap
.
random
=
'444705537'
::
float8
;
--
-- hash index
-- grep 88888888 hash.data
--
SELECT
hash_f8_heap
.
*
WHERE
hash_f8_heap
.
random
=
'88888888'
::
float8
;
--
-- hash index
-- grep '^90[^0-9]' hashovfl.data
--
-- SELECT count(*) AS i988 FROM hash_ovfl_heap
-- WHERE x = 90;
--
-- hash index
-- grep '^1000[^0-9]' hashovfl.data
--
-- SELECT count(*) AS i0 FROM hash_ovfl_heap
-- WHERE x = 1000;
--
-- HASH
--
UPDATE
hash_i4_heap
SET
random
=
1
WHERE
hash_i4_heap
.
seqno
=
1492
;
SELECT
h
.
seqno
AS
i1492
,
h
.
random
AS
i1
FROM
hash_i4_heap
h
WHERE
h
.
random
=
1
;
UPDATE
hash_i4_heap
SET
seqno
=
20000
WHERE
hash_i4_heap
.
random
=
1492795354
;
SELECT
h
.
seqno
AS
i20000
FROM
hash_i4_heap
h
WHERE
h
.
random
=
1492795354
;
UPDATE
hash_c16_heap
SET
random
=
'0123456789abcdef'
::
char16
WHERE
hash_c16_heap
.
seqno
=
6543
;
SELECT
h
.
seqno
AS
i6543
,
h
.
random
AS
c0_to_f
FROM
hash_c16_heap
h
WHERE
h
.
random
=
'0123456789abcdef'
::
char16
;
UPDATE
hash_c16_heap
SET
seqno
=
20000
WHERE
hash_c16_heap
.
random
=
'76652222'
::
char16
;
--
-- this is the row we just replaced; index scan should return zero rows
--
SELECT
h
.
seqno
AS
emptyset
FROM
hash_c16_heap
h
WHERE
h
.
random
=
'76652222'
::
char16
;
UPDATE
hash_txt_heap
SET
random
=
'0123456789abcdefghijklmnop'
::
text
WHERE
hash_txt_heap
.
seqno
=
4002
;
SELECT
h
.
seqno
AS
i4002
,
h
.
random
AS
c0_to_p
FROM
hash_txt_heap
h
WHERE
h
.
random
=
'0123456789abcdefghijklmnop'
::
text
;
UPDATE
hash_txt_heap
SET
seqno
=
20000
WHERE
hash_txt_heap
.
random
=
'959363399'
::
text
;
SELECT
h
.
seqno
AS
t20000
FROM
hash_txt_heap
h
WHERE
h
.
random
=
'959363399'
::
text
;
UPDATE
hash_f8_heap
SET
random
=
'-1234.1234'
::
float8
WHERE
hash_f8_heap
.
seqno
=
8906
;
SELECT
h
.
seqno
AS
i8096
,
h
.
random
AS
f1234_1234
FROM
hash_f8_heap
h
WHERE
h
.
random
=
'-1234.1234'
::
float8
;
UPDATE
hash_f8_heap
SET
seqno
=
20000
WHERE
hash_f8_heap
.
random
=
'488912369'
::
float8
;
SELECT
h
.
seqno
AS
f20000
FROM
hash_f8_heap
h
WHERE
h
.
random
=
'488912369'
::
float8
;
-- UPDATE hash_ovfl_heap
-- SET x = 1000
-- WHERE x = 90;
-- this vacuums the index as well
-- VACUUM hash_ovfl_heap;
-- SELECT count(*) AS i0 FROM hash_ovfl_heap
-- WHERE x = 90;
-- SELECT count(*) AS i988 FROM hash_ovfl_heap
-- WHERE x = 1000;
src/test/regress/sql/misc.sql
deleted
100644 → 0
View file @
b63e57be
This diff is collapsed.
Click to expand it.
src/test/regress/sql/tests
View file @
f9526f88
...
@@ -37,4 +37,6 @@ select_into
...
@@ -37,4 +37,6 @@ select_into
select_distinct
select_distinct
select_distinct_on
select_distinct_on
errors
errors
btree_index
hash_index
misc
misc
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