Re: Anybody have an Oracle PL/SQL reference at hand?

From: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Anybody have an Oracle PL/SQL reference at hand?
Date: 2004-08-04 17:48:25
Message-ID: 20040804174825.GM87347@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Aug 04, 2004 at 09:46:22AM +0800, Christopher Kings-Lynne wrote:
> >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...

Honestly, I'd *love* to see a merge command built in, assuming it's not
very difficult. I would think that having the database handle this
internally would be much more performant than using pgsql for it.

> Chris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Jim C. Nasby, Database Consultant decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2004-08-04 17:51:00 Re: [BUGS] casting strings to multidimensional arrays yields strange
Previous Message Tom Lane 2004-08-04 17:46:22 Re: [BUGS] casting strings to multidimensional arrays yields strange results