pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify show_incremental_sort_info a bit
Date: Sat, 09 May 2020 17:42:03 +0000
Message-ID: <E1jXTUB-0001VQ-Kk@gemulon.postgresql.org> (raw)

Simplify show_incremental_sort_info a bit

Incremental sort always processes at least one full group group before
switching to prefix groups, so it's enough to check just the number of
full groups. There was no risk of division by zero due to the extra
condition, but it made the code harder to understand.

Reported-by: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQAp+7qoS92-4V1vLChpdY3vEkLCbf+gye6P-4cirE-0z0A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ebeb3dea772652887b67a7549906f5a9ec8a487f

Modified Files
--------------
src/backend/commands/explain.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)



Message-ID: <E1jXTUB-0001VQ-Kk@gemulon.postgresql.org>
Permalink:  ../E1jXTUB-0001VQ-Kk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jXTUB-0001VQ-Kk@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: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Simplify show_incremental_sort_info a bit
  In-Reply-To: <E1jXTUB-0001VQ-Kk@gemulon.postgresql.org>
  References: <E1jXTUB-0001VQ-Kk@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