Fix estimate_num_groups() to not fail on PlaceHolderVars, per report from

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1d97c19a0f748e94b9582dcbaec33ad74be062f9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-04-19T19:46:33Z
Releases: 8.4.0
Fix estimate_num_groups() to not fail on PlaceHolderVars, per report from
Stefan Kaltenbrunner.  The most reasonable behavior (at least for the near
term) seems to be to ignore the PlaceHolderVar and examine its argument
instead.  In support of this, change the API of pull_var_clause() to allow
callers to request recursion into PlaceHolderVars.  Currently
estimate_num_groups() is the only customer for that behavior, but where
there's one there may be others.

Files