[PATCH] explain sortorder - Mailing list pgsql-hackers

From Timmer, Marius
Subject [PATCH] explain sortorder
Date
Msg-id F4FF595C-D39D-4036-A446-57C91ABE6B31@exchange.wwu.de
Whole thread Raw
Responses Re: [PATCH] explain sortorder  (Mike Blackwell <mike.blackwell@rrd.com>)
List pgsql-hackers
Hello everyone,

For creating indexes on more than one column, it is useful to know the sort
order of each sort key. So now, if you run EXPLAIN in VERBOSE mode, you get
the sort order information in the order the sort keys are displayed - Lukas

 - This patch is meant for discussion
 - It’s against the master branch
 - The patch compiles successfully and one test (inherit) is affected
 - There are no platform-specific items in this patch
 - The patch, as described, enhances EXPLAIN VERBOSE. For an example, see
   the regression test
 - There is no TODO item referring to this patch

      @patchname: explain_sortorder v2
        @version: 2.01
         @author: Marius Timmer <mtimm_01@uni-muenster.de>,
                  Arne Scheffer <arne.scheffer@uni-muenster.de>,
                  Lukas Kreft <lukaskreft@uni-muenster.de>
    @description: Display sort order options in VERBOSE mode of EXPLAIN


 - The situation

   Currently I am able to run a EXPLAIN-Statement (verbose) for getting more
   Information about a Query. But it is not enough to check in which order the
   results will be sorted, what could be interesting to modify some Statements
   so they can become more performant.


 - What this patch does

   This patch will add one more information to the result of an EXPLAIN-
   Statement in verbose-mode. You will find the new property "Sort order"
   which tells you the order of the used keys while sorting.
   You can use it in all available Formats.


Greetings,

Marius Timmer


---
Marius Timmer
Zentrum für Informationsverarbeitung
Westfälische Wilhelms-Universität Münster
Einsteinstraße 60

mtimm_01@uni-muenster.de

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: superuser() shortcuts
Next
From: Neil Tiffin
Date:
Subject: Re: [pgsql-packagers] Palle Girgensohn's ICU patch