Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 69B0B9F9F7B for ; Thu, 21 Dec 2006 12:03:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 17880-04 for ; Thu, 21 Dec 2006 12:03:18 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web31802.mail.mud.yahoo.com (web31802.mail.mud.yahoo.com [68.142.207.65]) by postgresql.org (Postfix) with SMTP id E47219F9DAD for ; Thu, 21 Dec 2006 12:03:17 -0400 (AST) Received: (qmail 86622 invoked by uid 60001); 21 Dec 2006 16:03:16 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=G/cAYD4FhtmSme9v5qhYVn0doA3yWZ/IXBvYaKPkX6bzpPZATMKYKLvlaWY1qxmBI3r5uhvCojDwra7wNwnpPfpJTG3bLBh8ZTSnHFcu/rl50spwOSJyabznOaYyoFTngBR1XF7NQDAzFjIOJVG1Ph7+nVfGnXU2xTmVGozhYV4=; X-YMail-OSG: wYNoMnAVM1mRGnGUYoN1pfDuKIQ43WC47BmtIk6b7BKnNj1L.yx.dM9EY9tlA7UjxzM40EWgcAuE45JXknrZ1fPvBmFwNufM8OEb0OErPdF8wPyzZxxSbsTdTO750P6gPyfhnGZomh_j09wzgOU5waC8zrzKYAbLLovsm1.FTo7DWx7ICsxcHUFs Received: from [12.177.97.50] by web31802.mail.mud.yahoo.com via HTTP; Thu, 21 Dec 2006 08:03:16 PST Date: Thu, 21 Dec 2006 08:03:16 -0800 (PST) From: Richard Broersma Jr Subject: Re: How to pass information back to client To: Chris Hoover , pgsql-odbc@postgresql.org In-Reply-To: <1d219a6f0612210757r19ab3024v6432b504a66d0f9a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <637971.84703.qm@web31802.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/84 X-Sequence-Number: 8531 > Is there anyway in PostgreSQL to have a function pass information back to > the client via the ODBC driver? > > I would like to have some of my trigger functions and regular functions be > able to pass specific error messages back to the client. Is this possible? > If so, how do you do it. If not, is it a planned enhancement? Raising and error or notice doesn't work? http://www.postgresql.org/docs/8.2/interactive/plpgsql-errors-and-messages.html Regards, Richard Broersma Jr.