Re: BUG #5066: plperl issues with perl_destruct() and END blocks

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: BUG #5066: plperl issues with perl_destruct() and END blocks
Дата
Msg-id
20090921160630.GF29793@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
BUG #5066: plperl issues with perl_destruct() and END blocks "Tim Bunce" <Tim.Bunce@pobox.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Robert Haas <robertmhaas@gmail.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tim Bunce <Tim.Bunce@pobox.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tim Bunce <Tim.Bunce@pobox.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks David Fetter <david@fetter.org>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks David Fetter <david@fetter.org>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks David Fetter <david@fetter.org>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Alvaro Herrera <alvherre@commandprompt.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Robert Haas <robertmhaas@gmail.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Robert Haas <robertmhaas@gmail.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks David Fetter <david@fetter.org>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tim Bunce <Tim.Bunce@pobox.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Robert Haas <robertmhaas@gmail.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Tim Bunce <Tim.Bunce@pobox.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Robert Haas <robertmhaas@gmail.com>
Re: BUG #5066: plperl issues with perl_destruct() and END blocks Robert Haas <robertmhaas@gmail.com>
David Fetter escribió:

> Taken literally, that would mean, "the last action before the backend
> exits," but at least to me, that sounds troubling for the same reasons
> that "end of transaction" triggers do.  What happens when there are
> two different END blocks in a session?

The manual is clear that both are executed.

> With connection poolers, backends can last quite awhile.  Is it OK for
> the END block to run hours after the rest of the code?

This is an interesting point -- should END blocks be called on DISCARD ALL?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-bugs по дате отправления
От: David Fetter
Дата:
От: Bruce Momjian
Дата:
FAQ