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

Behaviour of sql language function

From: Marcelo Sena <marceloslacerda(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Behaviour of sql language function
Date: 2012-04-26 19:45:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Hi all I noticed the following beaviour, if a command in a sql function
fails the other statements fail like if the entire function where
surrounded by a begin-commit block. While I find this behaviour nice, as
far as I could find, this behaviour is not documented[1]. I wished to
create a function that depends on such way of working but I cannot trust
that sql functions will continue to work that way on the next postgresql

So, is it documented somewhere?

I'm linking to a pastebin file that exemplifies the behaviour.

[1] -
[2] -
Marcelo Lacerda


pgsql-docs by date

Next:From: Kevin GrittnerDate: 2012-04-26 20:53:36
Subject: Re: Behaviour of sql language function
Previous:From: Tom LaneDate: 2012-04-26 18:46:18
Subject: Re: Date/Time Types : internals

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