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
d1bdab2f
Commit
d1bdab2f
authored
Mar 20, 2014
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_shm_mq: Improve regression tests.
Per discussion with Tom Lane.
parent
f88d4cfc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
contrib/test_shm_mq/expected/test_shm_mq.out
contrib/test_shm_mq/expected/test_shm_mq.out
+20
-2
contrib/test_shm_mq/sql/test_shm_mq.sql
contrib/test_shm_mq/sql/test_shm_mq.sql
+5
-2
No files found.
contrib/test_shm_mq/expected/test_shm_mq.out
View file @
d1bdab2f
...
...
@@ -4,13 +4,31 @@ CREATE EXTENSION test_shm_mq;
-- the operations complete without crashing or hanging and that none of their
-- internal sanity tests fail.
--
SELECT test_shm_mq(
32768, (select string_agg(chr(32+(random()*96)::int), '') from generate_series(1,400)), 10
000, 1);
SELECT test_shm_mq(
1024, '', 2
000, 1);
test_shm_mq
-------------
(1 row)
SELECT test_shm_mq_pipelined(16384, (select string_agg(chr(32+(random()*96)::int), '') from generate_series(1,270000)), 200, 3);
SELECT test_shm_mq(1024, 'a', 2001, 1);
test_shm_mq
-------------
(1 row)
SELECT test_shm_mq(32768, (select string_agg(chr(32+(random()*95)::int), '') from generate_series(1,(100+900*random())::int)), 10000, 1);
test_shm_mq
-------------
(1 row)
SELECT test_shm_mq(100, (select string_agg(chr(32+(random()*95)::int), '') from generate_series(1,(100+200*random())::int)), 10000, 1);
test_shm_mq
-------------
(1 row)
SELECT test_shm_mq_pipelined(16384, (select string_agg(chr(32+(random()*95)::int), '') from generate_series(1,270000)), 200, 3);
test_shm_mq_pipelined
-----------------------
...
...
contrib/test_shm_mq/sql/test_shm_mq.sql
View file @
d1bdab2f
...
...
@@ -5,5 +5,8 @@ CREATE EXTENSION test_shm_mq;
-- the operations complete without crashing or hanging and that none of their
-- internal sanity tests fail.
--
SELECT
test_shm_mq
(
32768
,
(
select
string_agg
(
chr
(
32
+
(
random
()
*
96
)::
int
),
''
)
from
generate_series
(
1
,
400
)),
10000
,
1
);
SELECT
test_shm_mq_pipelined
(
16384
,
(
select
string_agg
(
chr
(
32
+
(
random
()
*
96
)::
int
),
''
)
from
generate_series
(
1
,
270000
)),
200
,
3
);
SELECT
test_shm_mq
(
1024
,
''
,
2000
,
1
);
SELECT
test_shm_mq
(
1024
,
'a'
,
2001
,
1
);
SELECT
test_shm_mq
(
32768
,
(
select
string_agg
(
chr
(
32
+
(
random
()
*
95
)::
int
),
''
)
from
generate_series
(
1
,(
100
+
900
*
random
())::
int
)),
10000
,
1
);
SELECT
test_shm_mq
(
100
,
(
select
string_agg
(
chr
(
32
+
(
random
()
*
95
)::
int
),
''
)
from
generate_series
(
1
,(
100
+
200
*
random
())::
int
)),
10000
,
1
);
SELECT
test_shm_mq_pipelined
(
16384
,
(
select
string_agg
(
chr
(
32
+
(
random
()
*
95
)::
int
),
''
)
from
generate_series
(
1
,
270000
)),
200
,
3
);
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