Re: Problems with "NOTICE"-messages

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Problems with "NOTICE"-messages
Дата
Msg-id 46EE7A3D.70005@postgresql.org
обсуждение исходный текст
Ответ на Problems with "NOTICE"-messages  (Bintsarovsky Dima home <bintsarovsky@yandex.ru>)
Ответы Re: Problems with "NOTICE"-messages
Список pgadmin-support
Bintsarovsky Dima home wrote:
> I have two functions:
> 
> CREATE OR REPLACE FUNCTION tests.func1() RETURNS integer AS $BODY$ 
> DECLARE BEGIN RAISE NOTICE 'notice'; PERFORM tests.func2(); RETURN 1;
>  END;$BODY$ LANGUAGE 'plpgsql' VOLATILE;
> 
> 
> CREATE OR REPLACE FUNCTION tests.func2() RETURNS integer AS $BODY$ 
> DECLARE BEGIN RAISE NOTICE 'SUBnotice'; RETURN 1; END;$BODY$ LANGUAGE
> 'plpgsql' VOLATILE;
> 
> 
> If I call SELECT tests.func1(), then in messages-dialog I can see a
> notice from  tests.func1() only, but not from tests.func2() (as I
> know, PgAdmin has to show this notice with "CONTEXT....."). What's
> the problem? By the way, if I execute SELECT tests.func1() in psql I
> can see both notices.

Hmm, works for me in SVN-Trunk (1.8 beta5 + a few minor unrelated tweaks):

NOTICE:  notice
NOTICE:  SUBnotice
CONTEXT:  SQL statement "SELECT  tests.func2()"
PL/pgSQL function "func1" line 4 at perform

Total query runtime: 15 ms.
1 rows retrieved.

> I have this problem both in 1.6.3 and 1.8 versions of PgAdmin OS:
> Windows XP log_error_verbosity = DEFAULT client_min_messages = NOTICE
>  log_min_messages = NOTICE

My server is 8.2.5 on XP:

log_error_verbosity = default
client_min_messages = notice
log_min_messages = notice

Which are all default settings.

Anyone else able to reproduce this?

Regards, Dave


В списке pgadmin-support по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: pgAdmin 1.8.0 Beta 5 dies when adding a primary key
Следующее
От: Vladimir Kokovic
Дата:
Сообщение: Editing problem for bool fields with not null