Re: Error trapping in pg/PGSQL

From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error trapping in pg/PGSQL
Date: 2004-07-18 22:35:56
Message-ID: 1090190156.3429.20.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2004-07-16 at 16:55, Jim C. Nasby wrote:
> What plans are there for adding error trapping support to pl/PGSQL? In
> my case I'm trying to write code that will properly handle the race
> condition in doing a SELECT/INSERT (SELECT something but if it doesn't
> exist do an INSERT), and I can't see any way to make it fool-proof
> without being able to trap a duplicate key error. But it seems like
> error trapping is something that would be extremely useful to have aside
> from what I'm doing.

I do believe that this would be doable with subtransactions.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ian Barwick 2004-07-18 23:19:50 Re: nmap not showing postgres
Previous Message Scott Marlowe 2004-07-18 22:31:25 Re: Parallel Postgresql