Marcelo Sena <marceloslacerda(at)gmail(dot)com> wrote:
> So, is it documented somewhere?
| PostgreSQL actually treats every SQL statement as being executed
| within a transaction. If you do not issue a BEGIN command, then
| each individual statement has an implicit BEGIN and (if
| successful) COMMIT wrapped around it.
Combine this with the fact that a function can only run in the
context of a command, like:
You have your guarantee -- as long as you understand the possible
action of subtransactions (like savepoints).
In response to
pgsql-docs by date
|Next:||From: Tom Lane||Date: 2012-04-26 21:15:19|
|Subject: Re: Date/Time Types : internals |
|Previous:||From: Marcelo Sena||Date: 2012-04-26 19:45:40|
|Subject: Behaviour of sql language function|