pgsql: Add more tests for CREATE TABLE AS with WITH NO DATA

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add more tests for CREATE TABLE AS with WITH NO DATA
Date: 2019-02-07 00:23:06
Message-ID: E1grXT8-0003ww-RR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add more tests for CREATE TABLE AS with WITH NO DATA

The relation creation is done at executor startup, however the main
regression test suite is lacking scenarios where no data is inserted
which is something that can happen when using EXECUTE or EXPLAIN with
CREATE TABLE AS and WITH NO DATA.

Some patches are worked on to reshape the way CTAS relations are
created, so this makes sure that we do not miss some query patterns
already supported.

Reported-by: Andreas Karlsson
Author: Michael Paquier
Reviewed-by: Andreas Karlsson
Discussion: https://postgr.es/m/20190206091817.GB14980@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/537898bd81bd8bd3650846e0abde4298ff1373da

Modified Files
--------------
src/test/regress/expected/prepare.out | 7 +++++++
src/test/regress/expected/select_into.out | 7 ++++---
src/test/regress/sql/prepare.sql | 3 +++
src/test/regress/sql/select_into.sql | 7 ++++---
4 files changed, 18 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-02-07 01:10:22 pgsql: Align better test output regex with grammar in pg_dump TAP tests
Previous Message Peter Geoghegan 2019-02-06 23:58:38 pgsql: Avoid amcheck inline compression false positives.