Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 46D8D632FAF for ; Mon, 11 May 2009 05:50:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96076-06 for ; Mon, 11 May 2009 05:50:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from titania.wxnz.net (titania.wxnz.net [58.28.4.13]) by mail.postgresql.org (Postfix) with ESMTP id E0B8D632AAA for ; Mon, 11 May 2009 05:50:28 -0300 (ADT) Received: from gonzo (ip-118-90-131-178.xdsl.xnet.co.nz [118.90.131.178]) by titania.wxnz.net (Postfix) with ESMTP id 1F3E91098913 for ; Mon, 11 May 2009 20:50:25 +1200 (NZST) Received: from news by gonzo with local (Exim 4.69) (envelope-from ) id 1M3RCW-00005Q-Qs for pgsql-sql@postgresql.org; Mon, 11 May 2009 20:49:32 +1200 To: pgsql-sql@postgresql.org Path: not-for-mail From: Jasen Betts Newsgroups: gmane.comp.db.postgresql.sql Subject: Re: RAISE NOTICE Date: 11 May 2009 08:49:32 GMT Organization: Dis (not Dat) Organisation Lines: 44 Message-ID: References: <301031.49174.qm@web33503.mail.mud.yahoo.com> NNTP-Posting-Host: localhost Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reversiblemaps.ath.cx 1242031772 32330 127.0.0.1 (11 May 2009 08:49:32 GMT) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-2 (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200905/47 X-Sequence-Number: 32539 On 2009-05-11, Luigi N. Puleio wrote: > > --0-1686780820-1242021728=:49174 > Content-Type: text/plain; charset=us-ascii > > Hello Jasen, > > do you know if PQsetNoticeProcessor() is appliable to ADOQuery->Post()? > > I mean if I have an event where there's ADOQuery->Post(), should I do something like: > > returnvalue = ADOQuery->Post(); > PQsetNoticeProcessor(ADOConnection, PQnoticeProcessor, returnvalue); > right?... I suspect that you'll need to get the PQ connection from ADO and use that in the PQsetNoticeProcessor call. this may not be easy. OTOH ADO may already do that if you can fogure out how to enable the feature. > --- On Sun, 5/10/09, Jasen Betts wrote: > > From: Jasen Betts > Subject: Re: [SQL] RAISE NOTICE > To: pgsql-sql@postgresql.org > Date: Sunday, May 10, 2009, 10:57 AM > > On 2009-05-08, Luigi N. Puleio wrote: >> >> --0-1541576050-1241773508=:80512 >> Content-Type: text/plain; charset=us-ascii >> >> Hello everyone... >> >> I have a PL/PgSQL function where I use RAISE NOTICE but this kind of RAISE can't be shown on windows with a popup message like the EXCEPTION, indeed it goes to log messages list.. >> So, is there any way to show a popup message with a custom textmessage on it from a PL/PgSQL function?... > > postgres doesn't produce popups (your application does that) > > To get notification you need to call PQsetNoticeProcessor() to register a callback function. >