Re: ERROR: PlaceHolderVar found where not expected

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

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2023-03-14T15:11:16Z
Lists: pgsql-bugs
Richard Guo <guofenglinux@gmail.com> writes:
> Yes agreed.  The pull_var_clause precheck is not necessary considering
> we would match the 'clause_expr' to StatisticExtInfo expressions with
> equal().  +1 to remove it.

Done that way.

			regards, tom lane



Commits

  1. Remove unnecessary code in dependency_is_compatible_expression().