mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-15 19:06:59 +08:00
Exercise parallel GIN builds in regression tests
Modify two places creating GIN indexes in regression tests, so that the build is parallel. This provides a basic test coverage, even if the amounts of data are fairly small. Reported-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 18 Discussion: https://postgr.es/m/CALdSSPjUprTj+vYp1tRKWkcLYzdy=N=O4Cn4y_HoxNSqQwBttg@mail.gmail.com
This commit is contained in:
@ -851,6 +851,7 @@ SELECT count(*) FROM testjsonb WHERE j @? '$';
|
||||
SELECT count(*) FROM testjsonb WHERE j @? '$.public';
|
||||
SELECT count(*) FROM testjsonb WHERE j @? '$.bar';
|
||||
|
||||
ALTER TABLE testjsonb SET (parallel_workers = 2);
|
||||
CREATE INDEX jidx ON testjsonb USING gin (j);
|
||||
SET enable_seqscan = off;
|
||||
|
||||
@ -939,7 +940,7 @@ SELECT count(*) FROM testjsonb WHERE j = '{"pos":98, "line":371, "node":"CBA", "
|
||||
|
||||
--gin path opclass
|
||||
DROP INDEX jidx;
|
||||
CREATE INDEX jidx ON testjsonb USING gin (j jsonb_path_ops);
|
||||
CREATE INDEX CONCURRENTLY jidx ON testjsonb USING gin (j jsonb_path_ops);
|
||||
SET enable_seqscan = off;
|
||||
|
||||
SELECT count(*) FROM testjsonb WHERE j @> '{"wait":null}';
|
||||
|
||||
Reference in New Issue
Block a user