pgsql: Remove bogus Assert in make_partitionedrel_pruneinfo().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove bogus Assert in make_partitionedrel_pruneinfo().
Дата
Msg-id E1fnYPn-0006PL-FJ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove bogus Assert in make_partitionedrel_pruneinfo().

This Assert thought that a given rel couldn't be both leaf and
non-leaf, but it turns out that in some unusual plan trees
that's wrong, so remove it.

The lack of testing for cases like that is quite concerning ---
there is little reason for confidence that there aren't other
bugs in the area.  But developing a stable test case seems
rather difficult, and in any case we don't need this Assert.

David Rowley

Discussion: https://postgr.es/m/CAJGNTeOkdk=UVuMugmKL7M=owgt4nNr1wjxMg1F+mHsXyLCzFA@mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/69d0e7e6b81db733971508da0e512115930edf1e

Modified Files
--------------
src/backend/partitioning/partprune.c | 2 --
1 file changed, 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: Doc: Correct description of amcheck example query.
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Restrict access to reindex of shared catalogs fornon-privileged