Skip site navigation (1) Skip section navigation (2)

Re: Behaviour of sql language function

From: Marcelo Sena <marceloslacerda(at)gmail(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Behaviour of sql language function
Date: 2012-04-27 11:48:29
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Oh, nice, I haven't noticed that fact. Thanks!

Marcelo Lacerda

On Thu, Apr 26, 2012 at 5:53 PM, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov
> wrote:

> 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:
>    SELECT func_name();
> You have your guarantee -- as long as you understand the possible
> action of subtransactions (like savepoints).
> -Kevin

In response to

pgsql-docs by date

Next:From: Tom LaneDate: 2012-04-28 21:24:36
Subject: Documentation of underlying functions for statistics views
Previous:From: Selena DeckelmannDate: 2012-04-27 00:46:49
Subject: Re: "TL;DR:"

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group