pgsql: Reorder tests in get_cheapest_path_for_pathkeys(). - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Reorder tests in get_cheapest_path_for_pathkeys().
Date
Msg-id E1qeJwn-002qab-5z@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Move privilege check to the right place
Next
From: Bruce Momjian
Date:
Subject: pgsql: doc: change "cross product" to "Cartesian product"