pgsql: Fix code that checks to see if an index can be considered to - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix code that checks to see if an index can be considered to
Date
Msg-id 20060129172743.7AD6B9DCB4E@postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: mha@pgfoundry.org (User Mha)
Date:
Subject: pginstaller - pginst: Sync JDBC version
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix code that checks to see if an index can be considered to