Re: NOTICE-messages in C++

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: "Pgsql Mailing List (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: NOTICE-messages in C++
Date: 2000-10-20 07:11:04
Message-ID: 20001020091104.D8476@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 19, 2000 at 10:54:06AM +0100, Colin Taylor wrote:
> How can I catch NOTICE messages from the backend using C++.
> ...

I never used libpq++ but I know how it's done with libpq. Just look into
file src/interfaces/ecpg/lib/connect.c function ECPGconnect to see how to
install your own notice handler. To be honest, I did not write the code my
self, but Christof Petig <christof(dot)petig(at)wtal(dot)de> did. :-)

Michael
--
Michael Meskes
Michael(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Fernando Caamaño 2000-10-20 07:35:19 how can I unsuscribe from the list?
Previous Message Elmar Haneke 2000-10-20 06:56:54 Re: Any risk in increasing BLCKSZ to get larger tuples?