Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelism can block creation of columnar tables or views #50

Closed
wuputah opened this issue Mar 20, 2023 · 1 comment · Fixed by #138
Closed

Parallelism can block creation of columnar tables or views #50

wuputah opened this issue Mar 20, 2023 · 1 comment · Fixed by #138
Assignees
Labels
bug Something isn't working

Comments

@wuputah
Copy link
Member

wuputah commented Mar 20, 2023

Example:

CREATE TABLE sampletable (x numeric);
INSERT INTO sampletable SELECT i FROM generate_series(1,1000000) i;

-- since there are some parallel workers reading from heap, and CommandCounterIncrement
-- is not expected to be called during parallel operations
CREATE TABLE sampletable_columnar USING columnar AS SELECT * FROM sampletable ORDER BY 1 ASC;
ERROR: cannot start commands during a parallel operation

In this case the workaround is to temporarily disable parallelism, e.g. set max_parallel_workers = 1.

@wuputah wuputah added the bug Something isn't working label Mar 20, 2023
@mausch
Copy link

mausch commented Aug 9, 2023

This is preventing us from running https://github.com/moj-analytical-services/splink on Hydra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants