pg_plan_advice: Avoid assertion failure with partitionwise aggregate. An Append node that is part of a partitionwise aggregate has no apprelids. If such a node was elided, the previous coding would attempt to call unique_nonjoin_rtekind() on a NULL pointer, which leads to an assertion failure. Insert a NULL check to prevent that.
Reported-by: Alexander Lakhin <[email protected]> Discussion: http://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e2ee95233cab32a0d5fe64925aefe816c13dbbc0 Modified Files -------------- contrib/pg_plan_advice/pgpa_scan.c | 7 +++++++ 1 file changed, 7 insertions(+)
