Re: Anybody have an Oracle PL/SQL reference at hand? - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Anybody have an Oracle PL/SQL reference at hand?
Date
Msg-id 41103FEE.10809@familyhealth.com.au
Whole thread Raw
In response to Re: Anybody have an Oracle PL/SQL reference at hand?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Anybody have an Oracle PL/SQL reference at hand?  ("Jim C. Nasby" <decibel@decibel.org>)
List pgsql-hackers
> Depending on how tense you want to be about Oracle compatibility, we
> could make people actually write their blocks as above --- that is,
> the SAVEPOINT and ROLLBACK commands would be a required part of the
> exception-block syntax.  They wouldn't actually *do* anything, but
> they would make the code look more like its Oracle equivalent.  I'm not
> for this, but maybe someone wants to make the case for it?

So long as I can emulate SQL MERGE with it, I'm happy.  ie.  I need a 
solution to the 'try update, if no rows changed then insert (unique 
index)' common race condition issue.  If I cannot keep looping that 
until it succeeds, then exceptions don't help me...

Chris



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Have you heard? It's 8.0 ...
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: pg_dump bug fixing