Re: Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table - Mailing list pgsql-hackers

From David Rowley
Subject Re: Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table
Date
Msg-id CAApHDvrsdGvPyhaq94--ar8HbVM6imu=0Hd3+FNVy6LENnL_FA@mail.gmail.com
Whole thread Raw
In response to Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table  (Ayush Vatsa <ayushvatsa1810@gmail.com>)
Responses Re: Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table
List pgsql-hackers
On Thu, 5 Jun 2025 at 07:31, Ayush Vatsa <ayushvatsa1810@gmail.com> wrote:
> Are these Index Scans executed sequentially (one after the other as the Merge Append requests tuples)?

It's a fairly simple answer: Merge Append does not support parallelism.

> Or are they possibly executed in parallel, in advance, or concurrently in some way?

It's probably not impossible to do something in a future version of
PostgreSQL. We have Gather Merge, which handles executing some
sub-nodes and making sure the results get output in the correct order,
so it doesn't seem impossible that something could be done for Merge
Append. It just does not exist yet.

David



pgsql-hackers by date:

Previous
From: Suraj Kharage
Date:
Subject: Potential issue in listExtensions()
Next
From: shveta malik
Date:
Subject: Re: synchronized_standby_slots used in logical replication