Re: Exception Handling in C-Language Functions?

From: "Felix E(dot) Klee" <felix(dot)klee(at)inka(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Exception Handling in C-Language Functions?
Date: 2005-05-21 11:21:14
Message-ID: 87y8a8q0yd.wl%felix.klee@inka.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At Sat, 21 May 2005 20:13:13 +1000,
Neil Conway wrote:
> > Do "palloc" and "pfree" handle such a case cleanly?
>
> Yes -- they will roll back the current transaction on if there is no
> memory available.

Great. So I just use those.

> You can catch the error via PG_TRY() in 8.0 [...]

Nice, but we're not deploying 8.0. However, at the moment, out of
memory exceptions seem to be the only ones that I've to deal with.

--
Felix E. Klee

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-05-21 11:43:26 Re: numeric precision when raising one numeric to another.
Previous Message Neil Conway 2005-05-21 10:13:13 Re: Exception Handling in C-Language Functions?