pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't duplicate parallel seqscan shmem sizing logic in nbtree.
Date: Tue, 15 Jan 2019 20:43:12 +0000
Message-ID: <E1gjVYG-00046o-Nj@gemulon.postgresql.org> (raw)

Don't duplicate parallel seqscan shmem sizing logic in nbtree.

This is architecturally mildly problematic, which becomes more
pronounced with the upcoming introduction of pluggable storage.

To fix, teach heap_parallelscan_estimate() to deal with SnapshotAny
snapshots, and then use it from _bt_parallel_estimate_shared().

Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/90525d7b4e0fe5ebd53960cd7ef59ee11ff06516

Modified Files
--------------
src/backend/access/heap/heapam.c    | 10 ++++++++--
src/backend/access/nbtree/nbtsort.c | 13 +++----------
2 files changed, 11 insertions(+), 12 deletions(-)



Message-ID: <E1gjVYG-00046o-Nj@gemulon.postgresql.org>
Permalink:  ../E1gjVYG-00046o-Nj@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gjVYG-00046o-Nj@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Don't duplicate parallel seqscan shmem sizing logic in nbtree.
  In-Reply-To: <E1gjVYG-00046o-Nj@gemulon.postgresql.org>
  References: <E1gjVYG-00046o-Nj@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox