Re: why does plperl cache functions using just a bool for is_trigger

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: why does plperl cache functions using just a bool for is_trigger
Дата
Msg-id 7361.1288652388@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: why does plperl cache functions using just a bool for is_trigger  (Alex Hunsaker <badalex@gmail.com>)
Ответы Re: why does plperl cache functions using just a bool for is_trigger  (Alex Hunsaker <badalex@gmail.com>)
Список pgsql-hackers
Alex Hunsaker <badalex@gmail.com> writes:
> Speaking of which, pltcl stores the trigger reloid instead of a flag
> (it also uses tg_reloid in the internal proname).  It seems a tad
> excessive to have one function *per* trigger table.  I looked through
> the history to see if there was some reason, it goes all the way back
> to the initial commit.  I assume its this way because it copied
> plpgsql, which needs it as the rowtype might be different per table.
> pltcl should not have that issue.  Find attached a patch to clean that
> up and make it match the other pls (err um plperl).  It passes its
> regression tests and some additional limited testing.  Thoughts?

Surely, removing the internal name's dependency on the istrigger flag is
wrong.  If you're going to maintain separate hash entries at the pltcl
level, why would you want to risk collisions underneath that?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SR fails to send existing WAL file after off-line copy
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: revision of todo: NULL for ROW variables