Thomas Hallgren <[EMAIL PROTECTED]> 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.


                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

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to