Re: function transaction scope question
| От | Wright, George |
|---|---|
| Тема | Re: function transaction scope question |
| Дата | |
| Msg-id | 51548D6D5BEB57468163194A8C1A0E980161AB27@MAGPTCPEXC02.na.mag-ias.net обсуждение исходный текст |
| Ответ на | Re: function transaction scope question (John DeSoi <desoi@pgedit.com>) |
| Ответы |
Re: function transaction scope question
|
| Список | pgsql-novice |
On Jan 14, 2009, at 9:41 AM, Wright, George wrote: > If a function in PL/pgSQL is wrapped by a transaction, does that > same single transaction encompass other functions defined elsewhere > that this function calls? Yes, they all share the same transaction scope. And PL/pgSQL functions cannot change the transaction state (i.e. call commit or start a new transaction). John DeSoi, Ph.D. ----------- Then if there is a large amount of code all wrapped by a single transaction and it hangs somewhere in the code, what technique can be used to abort the transaction? (It's not really a deadlock) Thanks.
В списке pgsql-novice по дате отправления: