Fix code related to partitioning schemes for dropped columns.
authorRobert Haas <rhaas@postgresql.org>
Tue, 31 Oct 2017 09:11:21 +0000 (14:41 +0530)
committerRobert Haas <rhaas@postgresql.org>
Tue, 31 Oct 2017 09:13:05 +0000 (14:43 +0530)
commitcf7ab13bfb450dde50c86fa714a92964ce32b537
treefea135eb6549f1d217525f262eefac37cd48c536
parent35f059e9bdfb3b14ac9d22a9e159d36ec0ccf804
Fix code related to partitioning schemes for dropped columns.

The entry in appinfo->translated_vars can be NULL; if so, we must avoid
dereferencing it.

Ashutosh Bapat

Discussion: http://postgr.es/m/CAFjFpReL7+1ien=-21rhjpO3bV7aAm1rQ8XgLVk2csFagSzpZQ@mail.gmail.com
src/backend/optimizer/path/allpaths.c
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql