pgsql: Avoid postgres_fdw crash for a targetlist entry that's just a Pa

2019-04-27 Thread Tom Lane
Avoid postgres_fdw crash for a targetlist entry that's just a Param. foreign_grouping_ok() is willing to put fairly arbitrary expressions into the targetlist of a remote SELECT that's doing grouping or aggregation on the remote side, including expressions that have no foreign component to them at

pgsql: Avoid postgres_fdw crash for a targetlist entry that's just a Pa

2019-04-27 Thread Tom Lane
Avoid postgres_fdw crash for a targetlist entry that's just a Param. foreign_grouping_ok() is willing to put fairly arbitrary expressions into the targetlist of a remote SELECT that's doing grouping or aggregation on the remote side, including expressions that have no foreign component to them at

pgsql: Avoid postgres_fdw crash for a targetlist entry that's just a Pa

2019-04-27 Thread Tom Lane
Avoid postgres_fdw crash for a targetlist entry that's just a Param. foreign_grouping_ok() is willing to put fairly arbitrary expressions into the targetlist of a remote SELECT that's doing grouping or aggregation on the remote side, including expressions that have no foreign component to them at