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
a426ff58
Commit
a426ff58
authored
Apr 27, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
There, I'll leave this alone until Thomas catchs up *grin*
parent
832c0a4f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
71 deletions
+62
-71
src/test/regress/input/misc.source
src/test/regress/input/misc.source
+0
-63
src/test/regress/sql/arrays.sql
src/test/regress/sql/arrays.sql
+42
-0
src/test/regress/sql/random.sql
src/test/regress/sql/random.sql
+12
-0
src/test/regress/sql/tests
src/test/regress/sql/tests
+8
-8
No files found.
src/test/regress/input/misc.source
View file @
a426ff58
...
@@ -79,19 +79,6 @@ SELECT * FROM stud_emp;
...
@@ -79,19 +79,6 @@ SELECT * FROM stud_emp;
-- COPY aggtest TO stdout;
-- COPY aggtest TO stdout;
--
-- test the random function
--
-- count the number of tuples originally
SELECT count(*) FROM onek;
-- select roughly 1/10 of the tuples
SELECT count(*) FROM onek where oidrand(onek.oid, 10);
-- select again, the count should be different
SELECT count(*) FROM onek where oidrand(onek.oid, 10);
--
--
-- inheritance stress test
-- inheritance stress test
--
--
...
@@ -228,53 +215,3 @@ SELECT user_relns() AS user_relns
...
@@ -228,53 +215,3 @@ SELECT user_relns() AS user_relns
--
--
-- rewrite rules
-- rewrite rules
--
--
--
-- ARRAYS
--
SELECT * FROM arrtest;
SELECT arrtest.a[1],
arrtest.b[1][1][1],
arrtest.c[1],
arrtest.d[1][1],
arrtest.e[0]
FROM arrtest;
-- ??? what about
-- SELECT a[1], b[1][1][1], c[1], d[1][1], e[0]
-- FROM arrtest;
SELECT arrtest.a[1:3],
arrtest.b[1:1][1:2][1:2],
arrtest.c[1:2],
arrtest.d[1:1][1:2]
FROM arrtest;
-- returns three different results--
SELECT array_dims(arrtest.b) AS x;
-- returns nothing
SELECT *
FROM arrtest
WHERE arrtest.a[1] < 5 and
arrtest.c = '{"foobar"}'::_char16;
-- updating array subranges seems to be broken
--
-- UPDATE arrtest
-- SET a[1:2] = '{16,25}',
-- b[1:1][1:1][1:2] = '{113, 117}',
-- c[1:1] = '{"new_word"}';
SELECT arrtest.a[1:3],
arrtest.b[1:1][1:2][1:2],
arrtest.c[1:2],
arrtest.d[1:1][1:2]
FROM arrtest;
--
-- expensive functions
--
src/test/regress/sql/arrays.sql
0 → 100644
View file @
a426ff58
--
-- ARRAYS
--
SELECT
*
FROM
arrtest
;
SELECT
arrtest
.
a
[
1
],
arrtest
.
b
[
1
][
1
][
1
],
arrtest
.
c
[
1
],
arrtest
.
d
[
1
][
1
],
arrtest
.
e
[
0
]
FROM
arrtest
;
-- ??? what about
-- SELECT a[1], b[1][1][1], c[1], d[1][1], e[0]
-- FROM arrtest;
SELECT
arrtest
.
a
[
1
:
3
],
arrtest
.
b
[
1
:
1
][
1
:
2
][
1
:
2
],
arrtest
.
c
[
1
:
2
],
arrtest
.
d
[
1
:
1
][
1
:
2
]
FROM
arrtest
;
-- returns three different results--
SELECT
array_dims
(
arrtest
.
b
)
AS
x
;
-- returns nothing
SELECT
*
FROM
arrtest
WHERE
arrtest
.
a
[
1
]
<
5
and
arrtest
.
c
=
'{"foobar"}'
::
_char16
;
-- updating array subranges seems to be broken
--
-- UPDATE arrtest
-- SET a[1:2] = '{16,25}',
-- b[1:1][1:1][1:2] = '{113, 117}',
-- c[1:1] = '{"new_word"}';
SELECT
arrtest
.
a
[
1
:
3
],
arrtest
.
b
[
1
:
1
][
1
:
2
][
1
:
2
],
arrtest
.
c
[
1
:
2
],
arrtest
.
d
[
1
:
1
][
1
:
2
]
FROM
arrtest
;
src/test/regress/sql/random.sql
0 → 100644
View file @
a426ff58
--
-- test the random function
--
-- count the number of tuples originally
SELECT
count
(
*
)
FROM
onek
;
-- select roughly 1/10 of the tuples
SELECT
count
(
*
)
FROM
onek
where
oidrand
(
onek
.
oid
,
10
);
-- select again, the count should be different
SELECT
count
(
*
)
FROM
onek
where
oidrand
(
onek
.
oid
,
10
);
src/test/regress/sql/tests
View file @
a426ff58
...
@@ -39,13 +39,13 @@ select_distinct_on
...
@@ -39,13 +39,13 @@ select_distinct_on
transactions
transactions
portals
portals
errors
errors
misc
random
arrays
btree_index
btree_index
hash_index
hash_index
aggregates.sql
aggregates
select_views.sql
select_views
alter_table.sql
alter_table
purge.sql
purge
portals_p2.sql
portals_p2
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