pgsql: Prevent failure when RowExpr or XmlExpr is parse-analyzed twice.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Prevent failure when RowExpr or XmlExpr is parse-analyzed twice.
Дата
Msg-id E1TmquW-0003Zy-4j@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Prevent failure when RowExpr or XmlExpr is parse-analyzed twice.

transformExpr() is required to cope with already-transformed expression
trees, for various ugly-but-not-quite-worth-cleaning-up reasons.  However,
some of its newer subroutines hadn't gotten the memo.  This accounts for
bug #7763 from Norbert Buchmuller: transformRowExpr() was overwriting the
previously determined type of a RowExpr during CREATE TABLE LIKE INCLUDING
INDEXES.  Additional investigation showed that transformXmlExpr had the
same kind of problem, but all the other cases seem to be safe.

Andres Freund and Tom Lane

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/31bc839724439440b2e94ea616b28ce5be94e19c

Modified Files
--------------
src/backend/parser/gram.y       |    1 +
src/backend/parser/parse_expr.c |   19 +++++++++++++++++--
src/include/nodes/primnodes.h   |    3 ++-
3 files changed, 20 insertions(+), 3 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix documentation typo.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Prevent failure when RowExpr or XmlExpr is parse-analyzed twice.