summaryrefslogtreecommitdiffstats
path: root/src/test/modules/test_shm_mq/sql/test_shm_mq.sql
blob: 9de19d304a2104b5dc2dc166cb0dfc680aee6a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CREATE EXTENSION test_shm_mq;

--
-- These tests don't produce any interesting output.  We're checking that
-- the operations complete without crashing or hanging and that none of their
-- internal sanity tests fail.
--
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);