pgsql: Fix UtilityContainsQuery() to handle CREATE TABLE AS EXECUTE cor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix UtilityContainsQuery() to handle CREATE TABLE AS EXECUTE cor
Дата
Msg-id E1TPL8p-0004UQ-Ks@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix UtilityContainsQuery() to handle CREATE TABLE AS EXECUTE correctly.

The code seems to have been written to handle the pre-parse-analysis
representation, where an ExecuteStmt would appear directly under
CreateTableAsStmt.  But in reality the function is only run on
already-parse-analyzed statements, so there will be a Query node in
between.  We'd not noticed the bug because the function is generally
not used at all except in extended query protocol.

Per report from Robert Haas and Rushabh Lathia.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/12b721a7f0e3cb05630f267e0d9b4e63bbba6b0b

Modified Files
--------------
src/backend/tcop/utility.c |   13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix hash_search to avoid corruption of the hash table on out-of-
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix UtilityContainsQuery() to handle CREATE TABLE AS EXECUTE cor