pgsql: Fix a bug in the original implementation of redundant-join-clause

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix a bug in the original implementation of redundant-join-clause
Дата
Msg-id 20070731195337.4A5F39FBC3B@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix a bug in the original implementation of redundant-join-clause removal:
clauses in which one side or the other references both sides of the join
cannot be removed as redundant, because that expression won't have been
constrained below the join.  Per report from Sergey Burladyan.

CVS HEAD does not contain this bug due to EquivalenceClass rewrite, but it
seems wise to include the regression test for it anyway.

Modified Files:
--------------
    pgsql/src/test/regress/expected:
        join.out (r1.30 -> r1.31)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/join.out.diff?r1=1.30&r2=1.31)
        join_1.out (r1.12 -> r1.13)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/join_1.out.diff?r1=1.12&r2=1.13)
    pgsql/src/test/regress/sql:
        join.sql (r1.21 -> r1.22)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/join.sql.diff?r1=1.21&r2=1.22)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: If we're gonna use ExecRelationIsTargetRelation here, might as
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix a bug in the original implementation of redundant-join-clause