Re: [PERFORM] Bulk persistence strategy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PERFORM] Bulk persistence strategy
Дата
Msg-id 64473.1495453815@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PERFORM] Bulk persistence strategy  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-performance
Simon Riggs <simon@2ndquadrant.com> writes:
> It sounds like you don't know about anonymous code blocks with DO
> https://www.postgresql.org/docs/devel/static/sql-do.html

No, the problem was that there are also some parameters to be passed
in from the application, and DO doesn't take any parameters; so that
would require inserting them manually into the DO text, with all the
attendant hazards of getting-it-wrong.

We've speculated before about letting DO grow some parameter handling,
but it's not gotten to the top of anyone's to-do list.

            regards, tom lane


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

Предыдущее
От: Riaan Stander
Дата:
Сообщение: Re: [PERFORM] Bulk persistence strategy
Следующее
От: Ariel
Дата:
Сообщение: [PERFORM] index of only not null, use function index?