Re: How do BEGIN/COMMIT/ABORT operate in a nested SPI query?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How do BEGIN/COMMIT/ABORT operate in a nested SPI query?
Дата
Msg-id 7687.1461162513@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How do BEGIN/COMMIT/ABORT operate in a nested SPI query?  (<david@andl.org>)
Ответы Re: How do BEGIN/COMMIT/ABORT operate in a nested SPI query?  (<david@andl.org>)
Список pgsql-general
<david@andl.org> writes:
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
>> Define "executes".  You could shove those lines in via the wire protocol,
>> sure, but SPI won't take them.

> Now you really have me puzzled. What I provided is an extract from the log
> of generated SQL commands sent to the SPI interface. [Obviously there also
> values bound to the parameters which do not show up here.]

> The code executes without error and produces exactly the output I expected.

Are you remembering to check the result code from SPI_execute_whatever?

            regards, tom lane


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

Предыдущее
От: Moreno Andreo
Дата:
Сообщение: Re: PG 9.1 on windows setup problem
Следующее
От: Alex Ignatov
Дата:
Сообщение: Re: Initdb --data-checksums by default