pgsql: Fix a thinko in my patch of a couple months ago for bug #3116: it

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix a thinko in my patch of a couple months ago for bug #3116: it
Дата
Msg-id 20070501185428.CFF379FB617@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix a thinko in my patch of a couple months ago for bug #3116: it did the
wrong thing when inlining polymorphic SQL functions, because it was using the
function's declared return type where it should have used the actual result
type of the current call.  In 8.1 and 8.2 this causes obvious failures even if
you don't have assertions turned on; in 8.0 and 7.4 it would only be a problem
if the inlined expression were used as an input to a function that did
run-time type determination on its inputs.  Add a regression test, since this
is evidently an under-tested area.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/optimizer/util:
        clauses.c (r1.154.2.6 -> r1.154.2.7)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/clauses.c.diff?r1=1.154.2.6&r2=1.154.2.7)
    pgsql/src/test/regress/expected:
        polymorphism.out (r1.5 -> r1.5.2.1)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/polymorphism.out.diff?r1=1.5&r2=1.5.2.1)
    pgsql/src/test/regress/sql:
        polymorphism.sql (r1.1 -> r1.1.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/polymorphism.sql.diff?r1=1.1&r2=1.1.4.1)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix a thinko in my patch of a couple months ago for bug #3116: it
Следующее
От: mha@postgresql.org (Magnus Hagander)
Дата:
Сообщение: pgsql: Add wrapper script around install.pl that calls buildenv.bat