Re: 'Create table if not exists as' breaks SPI_execute

From: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
To: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 'Create table if not exists as' breaks SPI_execute
Date: 2016-04-11 15:48:37
Message-ID: 15DC2E4C-1663-4A5A-A2F5-916029772C82@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 11 Apr 2016, at 18:41, Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru> wrote:
>
> Hi.
>
> SPI_execute assumes that CreateTableAsStmt always have completionTag == “completionTag”.
> But it isn’t true in case of ‘IF NOT EXISTS’ present.
>
>
> <spi-cta.patch>

Sorry, I meant completionTag == “SELECT”.

--
Stas Kelvich
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-04-11 16:16:39 plan for beta1 & open issues
Previous Message Robert Haas 2016-04-11 15:45:38 Re: 2016-03 Commitfest