Re: Simple client messages from within pgPL/SQL - Mailing list pgsql-general

From Andre Schnoor
Subject Re: Simple client messages from within pgPL/SQL
Date
Msg-id 3832drF5k8qfkU1@individual.net
Whole thread Raw
In response to Simple client messages from within pgPL/SQL  ("Andre Schnoor" <andre.schnoor@web.de>)
Responses Re: Simple client messages from within pgPL/SQL  (Terry Lee Tucker <terry@esc1.com>)
List pgsql-general
> I'm desparately seeking for a simple way to send messages to the client
> during the execution of large stored procedures.
>
>   RAISE INFO 'Now Processing %', thisCustomer;
>
> Doesn't do it, because the client console is cluttered with verbose
context
> information (e.g. backtrace). It's impossible to follow these "messages".
>
> I'm afraid that lowering the verbosity level in the server config will
also
> affect error messages (where verbosity is helpful). Is there another way
to
> output strings to the "console"?


Example:


INFO:  Total of 25130 listed songs found, 13046 of them did not perform
today
CONTEXT:  SQL statement "SELECT  sp_song_performance_reset( $1 )"
PL/pgSQL function "sp_song_performance_batch" line 41 at select into
variables
SQL statement "SELECT  sp_song_performance_batch( $1 )"
PL/pgSQL function "sp_daily" line 39 at select into variables
SQL statement "SELECT  sp_daily()"
PL/pgSQL function "sp_test_charts" line 14 at select into variables


I only want to have the first line appear and nothing else.
How do I suppress the CONTEXT clutter?


Andre



pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: tsearch2 problems / limitations
Next
From: Terry Lee Tucker
Date:
Subject: Re: Simple client messages from within pgPL/SQL