Behaviour of sql language function - Mailing list pgsql-docs

From Marcelo Sena
Subject Behaviour of sql language function
Date
Msg-id CAPmRTtN_bY5v4K8hU2+aMLcFOUZE_PaPaAiVfBDT-E8su3xfzg@mail.gmail.com
Whole thread Raw
Responses Re: Behaviour of sql language function  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List 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 versions.

So, is it documented somewhere?

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

[1] - http://www.postgresql.org/docs/9.1/static/sql-createfunction.html
[2] - http://pastebin.com/LWfFgH7L
--
Marcelo Lacerda

pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Date/Time Types : internals
Next
From: "Kevin Grittner"
Date:
Subject: Re: Behaviour of sql language function