Re: New hooks for snapshot and transaction ID acquisition from external source

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: New hooks for snapshot and transaction ID acquisition from external source
Дата
Msg-id 25426.1361617614@sss.pgh.pa.us
обсуждение исходный текст
Ответ на New hooks for snapshot and transaction ID acquisition from external source  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> What do you think about adding hooks for transaction ID and snapshot
> acquisition?

Not much.  Those places are not only hot spots but remarkably delicate.
It's hard to see much that a plugin could do there that wouldn't be
pretty deleterious to both performance and reliability.  As an example,
throwing an error in either place is dangerous, and taking any locks
they don't already take even more so.

Now of course, if your plugin breaks your database that's maybe not my
problem, but I'm concerned that even just adding a test to see if
there's a hook to call could result in measurable slowdown.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: bugfix: --echo-hidden is not supported by \sf statements
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: bugfix: --echo-hidden is not supported by \sf statements