Donald Dong <xdong(at)csumb(dot)edu> writes:
> I noticed that debug_print_rel outputs "unknown expr" when the fields
> in baserestrictinfo are typed as varchar.
> ...
> I wonder if this is a proper way of fixing it?
It's hard to muster much enthusiasm for extending print_expr(),
considering how incomplete and little-used it is. I'd rather
spend effort on ripping it out in favor of using the far more
complete, and better-tested, code in ruleutils.c.
regards, tom lane