From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Fábio Moreira <fabio(at)dias(dot)moreira(dot)nom(dot)br> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Inspecting generated PlannerInfo |
Date: | 2016-03-03 15:42:53 |
Message-ID: | 18571.1457019773@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
=?UTF-8?Q?F=C3=A1bio_Moreira?= <fabio(at)dias(dot)moreira(dot)nom(dot)br> writes:
> From what I could find, PostgreSQLs tests check for output correctness but
> not if the query planner is actually applying specific optimizations to the
> input query; is that correct?
There are quite a few regression tests that look at EXPLAIN output to
verify that particular optimizations happen (or not) as intended.
There's no user-facing mechanism other than that. For development
purposes, you could consider inserting pprint() calls on Paths at
critical points, or just invoking pprint manually from gdb --- the latter
is what I usually do.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Jozef Riha | 2016-03-03 19:03:40 | help needed with error during upgrade (9.4 -> 9.5) |
Previous Message | Michael Paquier | 2016-03-03 11:28:35 | Re: [NOVICE] WHERE clause not used when index is used |