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
a2fd844c
Commit
a2fd844c
authored
Apr 29, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder tests and move aggregate table data to data/.
parent
1594bf2a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
101 deletions
+8
-101
src/test/regress/sql/aggregates.sql
src/test/regress/sql/aggregates.sql
+1
-94
src/test/regress/sql/tests
src/test/regress/sql/tests
+7
-7
No files found.
src/test/regress/sql/aggregates.sql
View file @
a2fd844c
--
-- replace
--
--
-- BTREE
--
UPDATE
onek
SET
unique1
=
onek
.
unique1
+
1
;
UPDATE
onek
SET
unique1
=
onek
.
unique1
-
1
;
--
-- BTREE partial
--
-- UPDATE onek2
-- SET unique1 = onek2.unique1 + 1;
--UPDATE onek2
-- SET unique1 = onek2.unique1 - 1;
--
-- BTREE shutting out non-functional updates
--
-- the following two tests seem to take a long time on some
-- systems. This non-func update stuff needs to be examined
-- more closely. - jolly (2/22/96)
--
UPDATE
temp
SET
stringu1
=
reverse_c16
(
onek
.
stringu1
)
WHERE
onek
.
stringu1
=
'JBAAAA'
and
onek
.
stringu1
=
temp
.
stringu1
;
UPDATE
temp
SET
stringu1
=
reverse_c16
(
onek2
.
stringu1
)
WHERE
onek2
.
stringu1
=
'JCAAAA'
and
onek2
.
stringu1
=
temp
.
stringu1
;
DROP
TABLE
temp
;
--UPDATE person*
-- SET age = age + 1;
--UPDATE person*
-- SET age = age + 3
-- WHERE name = 'linda';
--
-- copy
--
COPY
onek
TO
'_OBJWD_/results/onek.data'
;
DELETE
FROM
onek
;
COPY
onek
FROM
'_OBJWD_/results/onek.data'
;
SELECT
unique1
FROM
onek
WHERE
unique1
<
2
;
DELETE
FROM
onek2
;
COPY
onek2
FROM
'_OBJWD_/results/onek.data'
;
SELECT
unique1
FROM
onek2
WHERE
unique1
<
2
;
COPY
BINARY
stud_emp
TO
'_OBJWD_/results/stud_emp.data'
;
DELETE
FROM
stud_emp
;
COPY
BINARY
stud_emp
FROM
'_OBJWD_/results/stud_emp.data'
;
SELECT
*
FROM
stud_emp
;
-- COPY aggtest FROM stdin;
-- 56 7.8
-- 100 99.097
-- 0 0.09561
-- 42 324.78
-- .
-- 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
);
--
-- AGGREGATES
--
SELECT
avg
(
four
)
AS
avg_1
FROM
onek
;
SELECT
avg
(
a
)
AS
avg_
49
FROM
aggtest
WHERE
a
<
100
;
SELECT
avg
(
a
)
AS
avg_
32
FROM
aggtest
WHERE
a
<
100
;
SELECT
avg
(
b
)
AS
avg_107_943
FROM
aggtest
;
...
...
src/test/regress/sql/tests
View file @
a2fd844c
boolean
box
char
char16
char2
char4
char8
float4
float8
text
int2
int4
oid
oidint2
oidint4
oidname
float4
float8
point
box
polygon
text
timespan
datetime
reltime
...
...
@@ -32,19 +32,19 @@ create_operator
create_view
create_index
sanity_check
errors
select
select_into
select_distinct
select_distinct_on
aggregates
transactions
random
portals
errors
misc
random
arrays
btree_index
hash_index
aggregates
select_views
alter_table
purge
...
...
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