Re: Multiple SQL statements within a function...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multiple SQL statements within a function...
Дата
Msg-id 4230.1028174767@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Multiple SQL statements within a function...  ("Marc Mitchell" <marcm@eisolution.com>)
Ответы Re: Multiple SQL statements within a function...  (Haroldo Stenger <hstenger@adinet.com.uy>)
Список pgsql-admin
"Marc Mitchell" <marcm@eisolution.com> writes:
> If you have multiple SQL statements within a single SQL or PL/PGSQL
> function, are they automatically treated as a single multi-statement
> transaction

Yes.  The function is necessarily invoked within an interactive query
(SELECT, UPDATE, or whatever) and that establishes the transaction
context.  The function cannot create a transaction boundary, because
doing so would break whatever query it was called from.

            regards, tom lane

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

Предыдущее
От: Ludwig Lim
Дата:
Сообщение: Re: Multiple SQL statements within a function...
Следующее
От: Haroldo Stenger
Дата:
Сообщение: Re: Multiple SQL statements within a function...