Re: FastPath blocked when ERROR is thrown

From: Kris Jurka <books(at)ejurka(dot)com>
To: Yi Lin <ylin30(at)cs(dot)mcgill(dot)ca>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: FastPath blocked when ERROR is thrown
Date: 2006-04-11 22:59:33
Message-ID: Pine.BSO.4.63.0604111756500.2028@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Tue, 11 Apr 2006, Yi Lin wrote:

> I used java API FastPath.fastpath(fid, ...) to call a C function
> PGfn(conn, fid,...) in the kernal. But if there is an exception (i.e.,
> ERROR messages is thrown in the backend due to elog(ERROR, ...)), the
> FastPath.fastpath(fid, ..) is blocked and never returns.

The attached code runs fine with the cvs jdbc driver and a 8.0.7 server.
You haven't mentioned your versions, but this code hasn't changed recently
so anything relatively new should be fine.

How do you know the function is erroring out? What does the server log
say?

Kris Jurka

Attachment Content-Type Size
FP.java text/plain 1.2 KB

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2006-04-11 23:19:49 Re: Calendar vs. Timestamp
Previous Message Wei Wei 2006-04-11 22:59:18 Re: Calendar vs. Timestamp