Re: SPI function to investigate query semantics

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SPI function to investigate query semantics
Дата
Msg-id 18705.1101932842@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SPI function to investigate query semantics  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-patches
Thomas Hallgren <thhal@mailblocks.com> writes:
> Tom Lane wrote:
>> You do realize that SPI_execute will reject TransactionStmt anyway?
>> The example is therefore not very compelling ...
>>
> It won't reject savepoint related statements and that's what the example
> is for.

Really?

                if (queryTree->commandType == CMD_UTILITY)
                {
...
                    else if (IsA(queryTree->utilityStmt, TransactionStmt))
                    {
                        res = SPI_ERROR_TRANSACTION;
                        goto fail;
                    }
                }

Looks pretty rejectish to me...

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: SPI function to investigate query semantics
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: SPI function to investigate query semantics