A
A
alex--n2021-02-11 14:31:17
PostgreSQL
alex--n, 2021-02-11 14:31:17

How to optimize the request to create materialized views?

Good afternoon!
You need to create a materialized view, but due to the 64mb cuber limit, it constantly crashes with the error:

SQLSTATE[53100]: Disk full: 7 ERROR: could not resize shared memory segment "/PostgreSQL.1388503408" to 67244032 bytes: No space left on device

The request itself is quite large, but simple, and if you take it with a limit of 500, then the first pages are loaded, the last ones are gone. Are there any practices for creating such large views? Maybe in parts, and if so, how does it look like?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Melkij, 2021-02-11
@melkij

Set max_parallel_workers_per_gather to
0 the error is from the depths of the dynamic shared memory infrastructure for parallel query execution.

A
alex--n, 2021-02-13
@alex--n

In general, devops found a solution for the cuber
https://stackoverflow.com/questions/46085748/defin...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question