'Create table if not exists as' breaks SPI_execute
'Create table if not exists as' breaks SPI_execute
Hi. SPI_execute assumes that CreateTableAsStmt always have completionTag == “completionTag”. But it isn’t true in case of ‘IF NOT EXISTS’ present. -- Stas Kelvich Postgres Professional: http://www.postgrespro.com Russian Postgres Company
Re: 'Create table if not exists as' breaks SPI_execute
От:
Stas Kelvich <s.kelvich@postgrespro.ru>
Дата:
> On 11 Apr 2016, at 18:41, Stas Kelvich wrote: > > Hi. > > SPI_execute assumes that CreateTableAsStmt always have completionTag == “completionTag”. > But it isn’t true in case of ‘IF NOT EXISTS’ present. > > > Sorry, I meant completionTag == “SELECT”. -- Stas Kelvich Postgres Professional: http://www.postgrespro.com Russian Postgres Company