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

Use PostgreSQL 11+ to benefit from parallel "CREATE TABLE AS" ? #396

Closed
alex-kowalczyk opened this issue Jan 24, 2022 · 2 comments
Closed
Milestone

Comments

@alex-kowalczyk
Copy link

Docs for PostgreSQL 11+ state that

As an exception, the commands CREATE TABLE ... AS, SELECT INTO, and CREATE MATERIALIZED VIEW that create a new table and populate it can use a parallel plan.
-- https://www.postgresql.org/docs/12/when-can-parallel-query-be-used.html

A long-running create operation which ends long after all other parallelized queries, like CREATE TABLE IF NOT EXISTS osm_transportation_name_network AS, might benefit from running on parallel plan.

Is it considered to move openmaptiles postgres image to newer version in near future?
If not, would you have any suggestions for creating customized alternate image? Especially, is in general expected that current codebase will work fine with newer PostgreSQL versions, or there are some things known to not work fine (beside the -c jit=off thing)?

@TomPohys
Copy link
Member

Thanks for pointing this out. The plan is to upgrade to the newest PostgreSQL 14.

@TomPohys TomPohys added this to the 6.2 milestone Apr 28, 2022
@TomPohys
Copy link
Member

PostgreSQL upgraded in #413.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants