• Michael Paquier's avatar
    Add more tests for CREATE TABLE AS with WITH NO DATA · 537898bd
    Michael Paquier authored
    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
    537898bd
select_into.sql 3.2 KB