Performance bug in DO blocks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Performance bug in DO blocks
Дата
Msg-id 29244.1295376372@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Performance bug in DO blocks  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
I just noticed that if you execute the same DO command over and over
within a session, it gets slower and slower.  And if you keep it up
you'll notice the backend's RAM consumption bloating too.  The cause
appears to be that we leak the cached plans created for any SQL
statements or expressions within the DO command --- the next iteration
won't reuse those, but rather create its own set.  Probably ought to
look into releasing those when the DO block is over.
        regards, tom lane


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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: [PERFORM] pgbench to the MAXINT
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: test_fsync open_sync test