Re: statement_timeout doesnt work within plpgsql by design?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: statement_timeout doesnt work within plpgsql by design?
Дата
Msg-id 7211.1171993828@sss.pgh.pa.us
обсуждение исходный текст
Ответ на statement_timeout doesnt work within plpgsql by design?  (Robert Treat <xzilla@users.sourceforge.net>)
Ответы Re: statement_timeout doesnt work within plpgsql by design?
Список pgsql-hackers
Robert Treat <xzilla@users.sourceforge.net> writes:
> pagila=# create or replace function test() returns bool as $$ begin set 
> statement_timeout = 3000; perform pg_sleep(4) ; return true; end $$ language 
> plpgsql;
> CREATE FUNCTION

statement_timeout is measured across an entire interactive command, not
individual commands within a function; and the timeout that applies to
an interactive command is determined at its beginning.  So the above
doesn't do what you think.
        regards, tom lane


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: statement_timeout doesnt work within plpgsql by design?
Следующее
От: RPK
Дата:
Сообщение: Re: New feature request: FlashBack Query