Returning Errors from User Defined C-functions

From: o(dot)blomqvist(at)secomintl(dot)com (Otto Blomqvist)
To: pgsql-general(at)postgresql(dot)org
Subject: Returning Errors from User Defined C-functions
Date: 2004-09-16 01:32:16
Message-ID: c501cb7d.0409151732.cb7943e@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello !

I have several functions that are compiled as .so and runs pretty well
under PSQL. However I would like to be able to return errors (for
debugging) using something like this

fprintf(stderr, "BEGIN command failed\n");

Problem is I don't know where this would show up..? In some Postgres
log maybe ? I am not directly calling these functions, they are called
from a Daemon, also written in C running on the same box.

Any ideas ?

Thanks a lot

/Otto Blomqvist

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-09-16 01:56:30 Re: psql error - "unrecognizable command" V8.0.0 beta
Previous Message Bruce Momjian 2004-09-16 00:33:53 Re: psql + autocommit