pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA.
Дата
Msg-id E1bXroo-0002qp-JX@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix busted Assert for CREATE MATVIEW ... WITH NO DATA.

Commit 874fe3aea changed the command tag returned for CREATE MATVIEW/CREATE
TABLE AS ... WITH NO DATA, but missed that there was code in spi.c that
expected the command tag to always be "SELECT".  Fortunately, the
consequence was only an Assert failure, so this oversight should have no
impact in production builds.

Since this code path was evidently un-exercised, add a regression test.

Per report from Shivam Saxena. Back-patch to 9.3, like the previous commit.

Michael Paquier

Report: <97218716-480B-4527-B5CD-D08D798A0C7B@dresources.com>

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/894993ffee387383b371ebc515b5e8ea156f9574

Modified Files
--------------
src/backend/executor/spi.c            |  8 ++++++--
src/test/regress/expected/matview.out | 25 +++++++++++++++++++++++++
src/test/regress/sql/matview.sql      | 14 ++++++++++++++
3 files changed, 45 insertions(+), 2 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA.