pgsql: Reorder tests in get_cheapest_path_for_pathkeys().

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reorder tests in get_cheapest_path_for_pathkeys().
Date: 2023-09-07 18:41:45
Message-ID: E1qeJwn-002qab-5z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reorder tests in get_cheapest_path_for_pathkeys().

Checking parallel safety should be even cheaper than cost comparison, so
do that first.

Also make some minor, related comment improvements.

Richard Guo, reviewed by Aleksander Alekseev, Andy Fan, and me.

Discussion: http://postgr.es/m/CAMbWs4-KE2wf4QPj_Sr5mX4QFtBNNKGmxK=+e=KZEGUjdG33=g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9caf042088e7416ed612e52519ee15f0717e86a7

Modified Files
--------------
src/backend/optimizer/path/pathkeys.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2023-09-07 19:48:21 pgsql: doc: change "cross product" to "Cartesian product"
Previous Message Alvaro Herrera 2023-09-07 11:01:29 pgsql: Move privilege check to the right place