pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. @ 2016-08-11 15:22 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-08-11 15:22 UTC (permalink / raw) To: 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 ------ master Details ------- http://git.postgresql.org/pg/commitdiff/0f249fe5f5cb3c83fd8e05743740b35ff5d34196 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. @ 2016-08-11 15:22 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-08-11 15:22 UTC (permalink / raw) To: 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(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. @ 2016-08-11 15:22 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-08-11 15:22 UTC (permalink / raw) To: 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_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/268d92e5336d25b296a5ccf8ccf803a2adb40251 Modified Files -------------- src/backend/executor/spi.c | 16 ++++++++++++---- src/test/regress/expected/matview.out | 25 +++++++++++++++++++++++++ src/test/regress/sql/matview.sql | 14 ++++++++++++++ 3 files changed, 51 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. @ 2016-08-11 15:22 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-08-11 15:22 UTC (permalink / raw) To: 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_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/942ff002f9ee170d276240c71400e2772458b114 Modified Files -------------- src/backend/executor/spi.c | 16 ++++++++++++---- src/test/regress/expected/matview.out | 25 +++++++++++++++++++++++++ src/test/regress/sql/matview.sql | 14 ++++++++++++++ 3 files changed, 51 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2016-08-11 15:22 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-08-11 15:22 pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. Tom Lane <tgl@sss.pgh.pa.us> 2016-08-11 15:22 pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. Tom Lane <tgl@sss.pgh.pa.us> 2016-08-11 15:22 pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. Tom Lane <tgl@sss.pgh.pa.us> 2016-08-11 15:22 pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox