"Josh Berkus" <josh@agliodbs.com> writes:
> I'm getting this error:
> ERROR: replace_vars_with_subplan_refs: variable not in subplan target
> list
That's interesting ... but if you don't show us the function, how
do you expect any help?
regards, tom lane