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
74ce5c93
Commit
74ce5c93
authored
Aug 11, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make cluster regress test functional.
parent
13e838f1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
10 deletions
+57
-10
src/test/regress/expected/cluster.out
src/test/regress/expected/cluster.out
+43
-2
src/test/regress/parallel_schedule
src/test/regress/parallel_schedule
+3
-4
src/test/regress/serial_schedule
src/test/regress/serial_schedule
+2
-1
src/test/regress/sql/cluster.sql
src/test/regress/sql/cluster.sql
+9
-3
No files found.
src/test/regress/
output
/cluster.out
→
src/test/regress/
expected
/cluster.out
View file @
74ce5c93
...
@@ -204,6 +204,49 @@ SELECT * from clstr_tst ORDER BY c;
...
@@ -204,6 +204,49 @@ SELECT * from clstr_tst ORDER BY c;
8 | 21 | veintiuno
8 | 21 | veintiuno
(32 rows)
(32 rows)
-- Verify that inheritance link still works
INSERT INTO clstr_tst_inh VALUES (0, 100, 'in child table');
SELECT * from clstr_tst;
a | b | c
----+-----+----------------
10 | 14 | catorce
18 | 5 | cinco
9 | 4 | cuatro
26 | 19 | diecinueve
12 | 18 | dieciocho
30 | 16 | dieciseis
24 | 17 | diecisiete
2 | 10 | diez
23 | 12 | doce
11 | 2 | dos
25 | 9 | nueve
31 | 8 | ocho
1 | 11 | once
28 | 15 | quince
32 | 6 | seis
29 | 7 | siete
15 | 13 | trece
22 | 30 | treinta
17 | 32 | treinta y dos
3 | 31 | treinta y uno
5 | 3 | tres
20 | 1 | uno
6 | 20 | veinte
14 | 25 | veinticinco
21 | 24 | veinticuatro
4 | 22 | veintidos
19 | 29 | veintinueve
16 | 28 | veintiocho
27 | 26 | veintiseis
13 | 27 | veintisiete
7 | 23 | veintitres
8 | 21 | veintiuno
0 | 100 | in child table
(33 rows)
-- Verify that foreign key link still works
INSERT INTO clstr_tst (b, c) VALUES (1111, 'this should fail');
ERROR: clstr_tst_con referential integrity violation - key referenced from clstr_tst not found in clstr_tst_s
SELECT conname FROM pg_constraint WHERE conrelid=(SELECT oid FROM pg_class
SELECT conname FROM pg_constraint WHERE conrelid=(SELECT oid FROM pg_class
WHERE relname='clstr_tst');
WHERE relname='clstr_tst');
conname
conname
...
@@ -228,5 +271,3 @@ SELECT relname FROM pg_class WHERE relname LIKE 'clstr_tst%' ORDER BY relname;
...
@@ -228,5 +271,3 @@ SELECT relname FROM pg_class WHERE relname LIKE 'clstr_tst%' ORDER BY relname;
clstr_tst_s_rf_a_seq
clstr_tst_s_rf_a_seq
(11 rows)
(11 rows)
DROP TABLE clstr_tst_inh;
DROP TABLE clstr_tst;
src/test/regress/parallel_schedule
View file @
74ce5c93
...
@@ -55,11 +55,11 @@ test: sanity_check
...
@@ -55,11 +55,11 @@ test: sanity_check
# ----------
# ----------
test: errors
test: errors
test: select
test: select
ignore: random
# ----------
# ----------
# The fourth group of parallel test
# The fourth group of parallel test
# ----------
# ----------
ignore: random
test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index
test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index
test: privileges
test: privileges
...
@@ -68,11 +68,10 @@ test: misc
...
@@ -68,11 +68,10 @@ test: misc
# ----------
# ----------
# The fifth group of parallel test
# The fifth group of parallel test
# ----------
# ----------
test: select_views alter_table portals_p2 rules foreign_key
test: select_views alter_table portals_p2 rules foreign_key
cluster
# ----------
# ----------
# The sixth group of parallel test
# The sixth group of parallel test
# ----------
# ----------
# "plpgsql" cannot run concurrently with "rules"
# "plpgsql" cannot run concurrently with "rules"
test: limit plpgsql temp domain rangefuncs copy2 conversion
test: limit plpgsql temp domain rangefuncs copy2 conversion without_oid
test: without_oid
src/test/regress/serial_schedule
View file @
74ce5c93
# $Header: /cvsroot/pgsql/src/test/regress/serial_schedule,v 1.1
4 2002/07/25 10:07:13 ishii
Exp $
# $Header: /cvsroot/pgsql/src/test/regress/serial_schedule,v 1.1
5 2002/08/11 02:06:32 tgl
Exp $
# This should probably be in an order similar to parallel_schedule.
# This should probably be in an order similar to parallel_schedule.
test: boolean
test: boolean
test: char
test: char
...
@@ -79,6 +79,7 @@ test: alter_table
...
@@ -79,6 +79,7 @@ test: alter_table
test: portals_p2
test: portals_p2
test: rules
test: rules
test: foreign_key
test: foreign_key
test: cluster
test: limit
test: limit
test: plpgsql
test: plpgsql
test: copy2
test: copy2
...
...
src/test/regress/sql/cluster.sql
View file @
74ce5c93
...
@@ -64,9 +64,15 @@ SELECT * from clstr_tst ORDER BY a;
...
@@ -64,9 +64,15 @@ SELECT * from clstr_tst ORDER BY a;
SELECT
*
from
clstr_tst
ORDER
BY
b
;
SELECT
*
from
clstr_tst
ORDER
BY
b
;
SELECT
*
from
clstr_tst
ORDER
BY
c
;
SELECT
*
from
clstr_tst
ORDER
BY
c
;
-- Verify that inheritance link still works
INSERT
INTO
clstr_tst_inh
VALUES
(
0
,
100
,
'in child table'
);
SELECT
*
from
clstr_tst
;
-- Verify that foreign key link still works
INSERT
INTO
clstr_tst
(
b
,
c
)
VALUES
(
1111
,
'this should fail'
);
SELECT
conname
FROM
pg_constraint
WHERE
conrelid
=
(
SELECT
oid
FROM
pg_class
SELECT
conname
FROM
pg_constraint
WHERE
conrelid
=
(
SELECT
oid
FROM
pg_class
WHERE
relname
=
'clstr_tst'
);
WHERE
relname
=
'clstr_tst'
);
SELECT
relname
FROM
pg_class
WHERE
relname
LIKE
'clstr_tst%'
ORDER
BY
relname
;
DROP
TABLE
clstr_tst_inh
;
DROP
TABLE
clstr_tst
;
SELECT
relname
FROM
pg_class
WHERE
relname
LIKE
'clstr_tst%'
ORDER
BY
relname
;
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