pgsql: Fix assorted syscache lookup sloppiness in partition-related cod

2017-11-27 Thread Tom Lane
Fix assorted syscache lookup sloppiness in partition-related code. heap_drop_with_catalog and ATExecDetachPartition neglected to check for SearchSysCache failures, as noted in bugs #14927 and #14928 from Pan Bian. Such failures are pretty unlikely, since we should already have some sort of lock on

pgsql: Fix assorted syscache lookup sloppiness in partition-related cod

2017-11-27 Thread Tom Lane
Fix assorted syscache lookup sloppiness in partition-related code. heap_drop_with_catalog and ATExecDetachPartition neglected to check for SearchSysCache failures, as noted in bugs #14927 and #14928 from Pan Bian. Such failures are pretty unlikely, since we should already have some sort of lock on