two concurrency questions

From: Jeff Patterson <jpat(at)mpip(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: two concurrency questions
Date: 2003-03-04 02:20:47
Message-ID: 3E640D7F.4070602@mpip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I searched the documentation and can't find the specific answers to
these questions.

1: Are user defined functions (eg pgplsql) atomic? I.e. if my function
updates a bunch of rows and one update fails for one reason or another
does it automatically roll-back to the state before the function was called?

2: If an update causes a trigger and the trigger updates a row and the
trigger fails, what happens? Is there a way to atomize the whole process?

Thanks,

Jeff Patterson
jpat(at)mpip(dot)org
The Melanoma Patients' Information Page
http://www.mpip.org

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christian Imbeault 2003-03-04 02:22:52 Re: REINDEX syntax?
Previous Message Christopher Kings-Lynne 2003-03-04 01:47:37 Re: [PATCHES] ALTER SEQUENCE