pgsql: Fix bug #5269: ResetPlanCache mustn't invalidate cached utility

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix bug #5269: ResetPlanCache mustn't invalidate cached utility
Дата
Msg-id 20100113165703.2C06D7541B9@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix bug #5269: ResetPlanCache mustn't invalidate cached utility statements,
especially not ROLLBACK.  ROLLBACK might need to be executed in an already
aborted transaction, when there is no safe way to revalidate the plan.  But
in general there's no point in marking utility statements invalid, since
they have no plans in the normal sense of the word; so we might as well
work a bit harder here to avoid future revalidation cycles.

Back-patch to 8.4, where the bug was introduced.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/cache:
        plancache.c (r1.27.2.1 -> r1.27.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/plancache.c?r1=1.27.2.1&r2=1.27.2.2)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix bug #5269: ResetPlanCache mustn't invalidate cached utility
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: When loading critical system indexes into the relcache, ensure we