'Create table if not exists as' breaks SPI_execute

From: Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: 'Create table if not exists as' breaks SPI_execute
Date: 2016-04-11 15:41:14
Message-ID: 723ED897-E2E3-4A2B-B693-CA7CAC681FBB@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

SPI_execute assumes that CreateTableAsStmt always have completionTag == “completionTag”.
But it isn’t true in case of ‘IF NOT EXISTS’ present.

Attachment Content-Type Size
spi-cta.patch application/octet-stream 1.0 KB
unknown_filename text/plain 95 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-04-11 15:44:00 Re: Choosing parallel_degree
Previous Message Julien Rouhaud 2016-04-11 15:27:57 Re: Choosing parallel_degree