Skip to main content
Filter by
Sorted by
Tagged with
6 votes
1 answer
2k views

From PostgreSQL 9.6 Release Notes: Only strictly read-only queries where the driving table is accessed via a sequential scan can be parallelized. My question is: If a CTE (WITH clause) contains only ...
1 vote
1 answer
455 views

I have 20 tables with identical structure, and I need to aggregate the results. I'm using UNION ALL to collect the results, in the following structure: SELECT something, SUM(total) AS overall_total ...
2 votes
1 answer
3k views

Created materialized view in parallel by setting max_parallel_workers_per_gather to 4. I could see parallel sessions kicking off and creating the mview much faster than serial execution (10mins - ...
0 votes
1 answer
2k views

Hello I'm playing around with postgres as a search engine by using GIN indexes with trigram module and partitioned table and I'm trying to parallelize the query but no matter what I set the query is ...
3 votes
2 answers
2k views

Looking here, it is clear that Oracle supports execution of DDL commands in parallel with scenarios clearly listed. I was wondering whether Postgres does indeed offer such functionality? I can find a ...
0 votes
1 answer
231 views

I am using PostgreSQL's Server Programming Interface (SPI) to build my postgres extension and execute my query. Please see this detailed example, or the following simple code sample: int ret = ...
0 votes
0 answers
2k views

I am using "PostgreSQL 11.4, compiled by Visual C++ build 1914, 64-bit" I want to run parallel query for testing purpose, below is my pg_settings parameter values: "checkpoint_completion_target" ...
5 votes
1 answer
3k views

Postgres now has parallel queries. Are parallel queries used when the table is partitioned, the query is on the master table, and more than one partitions (child tables) are involved. For example, I ...