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

pgsql & transaction doubt

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: pgsql-novice(at)postgresql(dot)org
Subject: pgsql & transaction doubt
Date: 2007-01-26 07:39:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Hi all,
a little doubt that came into my mind reading the official manual (chapter 37, 
page 677): "functions and trigger procedures are always executed within a 
transaction established by an outer query". What does "outer" means? If I'd 
like a function to be execute within a transaction should I manually begin 
and end the transaction or is the procedure code always executed in a kind of 
subtransaction? I mean, supposing a function raises an exception, what 
happens to all the sql statement issued by the function before the exception? 
Are they automatically rollbacked?



pgsql-novice by date

Next:From: A. KretschmerDate: 2007-01-26 07:48:53
Subject: Re: pgsql & transaction doubt
Previous:From: Jim NasbyDate: 2007-01-26 04:42:15
Subject: Re: [SPAM] Restore single table from pg_dumpall.

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