output
output
От:
Popeanga Marian <pmarian@cnlo.ro>
Дата:
Hello all,
I am interested on how can i put output data for debugging
purposes. Any sample will be very good!
Thanks,
/Marian
Re: output
От:
Richard Huxton <dev@archonet.com>
Дата:
On Thursday 02 October 2003 09:52, Popeanga Marian wrote: > Hello all, > > > I am interested on how can i put output data for debugging > purposes. Any sample will be very good! Output what data when? To what? If you can describe your situation, I'm sure we can come up with something to help. -- Richard Huxton Archonet Ltd
Re: output
От:
Popeanga Marian <pmarian@cnlo.ro>
Дата:
Richard Huxton wrote:On Thursday 02 October 2003 09:52, Popeanga Marian wrote:Hello all, I am interested on how can i put output data for debugging purposes. Any sample will be very good!Output what data when? To what? If you can describe your situation, I'm sure we can come up with something to help.Inside a plpgsql block . RAISE NOTICE ''Operation performed!'';Now if i don't use psql from where i can read the output ?
Thanks,
/Marian
Re: output
От:
Richard Huxton <dev@archonet.com>
Дата:
On Thursday 02 October 2003 12:09, Popeanga Marian wrote: > > Inside a plpgsql block . > RAISE NOTICE ''Operation performed!''; > > Now if i don't use psql from where i can read the output ? Ah - I think you need to set CLIENT_MIN_MESSAGES accordingly and then you can check for a non-fatal error code in your result-code. Never done it myself mind. -- Richard Huxton Archonet Ltd
Re: output
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Popeanga Marian writes: > Now if i don't use psql from where i can read the output ? If you're using libpq directly, you can install a notice processor hook routine to catch NOTICE messages. Otherwise they go to stderr. regards, tom lane
Re: output
От:
Popeanga Marian <pmarian@cnlo.ro>
Дата:
I am using libpg inside a plugin.
For oracle conections i can read the server output with this package dbms_output.read_line (... ).
For pgsql is something similar for reading server output ?
Tom Lane wrote:Popeanga Marian <pmarian@cnlo.ro> writes:Now if i don't use psql from where i can read the output ?If you're using libpq directly, you can install a notice processor hook routine to catch NOTICE messages. Otherwise they go to stderr. regards, tom lane
Re: output
От:
Popeanga Marian <pmarian@cnlo.ro>
Дата:
Popeanga Marian wrote:
I am using libpg inside a plugin.
For oracle conections i can read the server output with this package dbms_output.read_line (... ).
For pgsql is something similar for reading server output ?
Tom Lane wrote:Popeanga Marian <pmarian@cnlo.ro> writes:Now if i don't use psql from where i can read the output ?If you're using libpq directly, you can install a notice processor hook routine to catch NOTICE messages. Otherwise they go to stderr. regards, tom lane
Can you tell me more about how to install a notice processor hook routine to catch NOTICE messages ?
Thanks,
/Marian