pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA.
Date: Thu, 11 Aug 2016 15:22:50 +0000
Message-ID: <E1bXroo-0002qr-Ja@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


view thread (4+ messages)  latest in thread

Message-ID: <E1bXroo-0002qr-Ja@gemulon.postgresql.org>
Permalink:  ../E1bXroo-0002qr-Ja@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bXroo-0002qr-Ja@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix busted Assert for CREATE MATVIEW ... WITH NO DATA.
  In-Reply-To: <E1bXroo-0002qr-Ja@gemulon.postgresql.org>
  References: <E1bXroo-0002qr-Ja@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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