pgsql: Fix code that checks to see if an index can be considered to

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix code that checks to see if an index can be considered to
Дата
Msg-id 20060129172743.7AD6B9DCB4E@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix code that checks to see if an index can be considered to match the query's
requested sort order.  It was assuming that build_index_pathkeys always
generates a pathkey per index column, which was not true if implied equality
deduction had determined that two index columns were effectively equated to
each other.  Simplest fix seems to be to install an option that causes
build_index_pathkeys to support this behavior as well as the original one.
Per report from Brian Hirt.

Modified Files:
--------------
    pgsql/src/backend/optimizer/path:
        indxpath.c (r1.198 -> r1.199)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/indxpath.c.diff?r1=1.198&r2=1.199)
        pathkeys.c (r1.74 -> r1.75)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/pathkeys.c.diff?r1=1.74&r2=1.75)
    pgsql/src/include/optimizer:
        paths.h (r1.90 -> r1.91)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/optimizer/paths.h.diff?r1=1.90&r2=1.91)

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

Предыдущее
От: mha@pgfoundry.org (User Mha)
Дата:
Сообщение: pginstaller - pginst: Sync JDBC version
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix code that checks to see if an index can be considered to