pgsql: Fix getTypeIOParam to support type record[].

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix getTypeIOParam to support type record[].
Дата
Msg-id E1RWAgl-0000Md-Bt@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix getTypeIOParam to support type record[].

Since record[] uses array_in, it needs to have its element type passed
as typioparam.  In HEAD and 9.1, this fix essentially reverts commit
9bc933b2125a5358722490acbc50889887bf7680, which was a hack that is no
longer needed since domains don't set their typelem anymore.  Before
that, adjust the logic so that only domains are excluded from being
treated like arrays, rather than assuming that only base types should
be included.  Add a regression test to demonstrate the need for this.
Per report from Maxim Boguk.

Back-patch to 8.4, where type record[] was added.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/efb74237937a95de3e933c807861bf70ae0149ce

Modified Files
--------------
src/backend/utils/cache/lsyscache.c        |    2 +-
src/test/regress/expected/polymorphism.out |   21 +++++++++++++++++++++
src/test/regress/sql/polymorphism.sql      |   15 +++++++++++++++
3 files changed, 37 insertions(+), 1 deletions(-)


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pgsql: Add file-fdw documentation example.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix getTypeIOParam to support type record[].