Re: Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Ayush Vatsa <ayushvatsa1810(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table
Date: 2025-06-05 06:49:14
Message-ID: CAApHDvrsdGvPyhaq94--ar8HbVM6imu=0Hd3+FNVy6LENnL_FA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 5 Jun 2025 at 07:31, Ayush Vatsa <ayushvatsa1810(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message shveta malik 2025-06-05 06:57:37 Re: synchronized_standby_slots used in logical replication
Previous Message Suraj Kharage 2025-06-05 05:52:39 Potential issue in listExtensions()