RAISE NOTICE event on Zeos
Posted: 01.03.2007, 08:02
is there any event when RAISE NOTICE run in plpgsql.
thank you of its aid
thank you of its aid
This is the official forum of ZeosLib providing support to all ZeosLib users.
https://zeoslib.sourceforge.io/
It's not as bad as you think. I was talking to a former Zeos developer who's name I can't mention, but he said the notification support was in Zeos years ago, so I wonder if it was in 5.x and never made it to 6, or the low level support is in Zeos 6.x but has never been surfaced as a event.mdaems wrote:Bad news... as far as I know the components do not support events yet. This feature is on the wish list. Unfortunately the programmer to implement it is on the same list. So... Who wants to implement this? just step forward...
Whether messages of a particular priority are reported to the client, written to the server log, or both is controlled by the log_min_messages and client_min_messages configuration variables
Maybe, but RAISE NOTICE is different to LISTEN / NOTIFY which is what was supported by previous versions of ZeosLib, that's all I was saying.@Ben : I think the OP wanted to catch the errors raised on the server.
Code: Select all
postgres=# listen some_message;
LISTEN
postgres=# notify some_message;
NOTIFY
Asynchronous notification "some_message" received from server process with PID 26358.
postgres=#
Code: Select all
postgres=# create function test_function() RETURNS VOID as
postgres-# $body$
postgres$# begin
postgres$# RAISE NOTICE 'Hi There';
postgres$# end;
postgres$# $body$
postgres-# LANGUAGE 'plpgsql';
CREATE FUNCTION
postgres=# SELECT test_function();
NOTICE: Hi There
test_function
---------------
(1 row)
postgres=#
I see in zeosdbo-5.5 figure in TZPGSQLNOTIFY, but cannot be installed at turbo delphi pro caused by code which unknown to. hopefully all developer will reenter version components 5.5 returning to version come. thank yousnorkel wrote:It's not as bad as you think. I was talking to a former Zeos developer who's name I can't mention, but he said the notification support was in Zeos years ago, so I wonder if it was in 5.x and never made it to 6, or the low level support is in Zeos 6.x but has never been surfaced as a event.mdaems wrote:Bad news... as far as I know the components do not support events yet. This feature is on the wish list. Unfortunately the programmer to implement it is on the same list. So... Who wants to implement this? just step forward...
I had to stop using Zeos because of the lack of notification support :-(