Re: compile error with -DOPTIMIZER_DEBUG - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: compile error with -DOPTIMIZER_DEBUG
Date
Msg-id 200911291133.nATBXn627165@momjian.us
Whole thread Raw
In response to Re: compile error with -DOPTIMIZER_DEBUG  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: compile error with -DOPTIMIZER_DEBUG
List pgsql-hackers
Tom Lane wrote:
> Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> > Jan Urbański wrote:
> >> ISTM that there's a superfluous curly brace in print_path (which only
> >> gets compiled with -DOPTIMIZER_DEBUG.
> 
> > Thanks, committed.
> 
> You know, the last couple of times I've touched that code, I've been
> wondering why we bother to maintain it.  Personally I always use pprint()
> when I'm interested in a printout of a plan tree.  Is anyone actually
> using the printout code in allpaths.c?

I thought OPTIMIZER_DEBUG showed us all the possible paths, not just the
final plan.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: Timezones (in 8.5?)
Next
From: Magnus Hagander
Date:
Subject: Re: LDAP where DN does not include UID attribute