pgsql: Fix bug in temporary file management with subtransactions.

Поиск
Список
Период
Сортировка
От heikki@postgresql.org (Heikki Linnakangas)
Тема pgsql: Fix bug in temporary file management with subtransactions.
Дата
Msg-id 20091203110414.124E5753FBC@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix bug in temporary file management with subtransactions. A cursor opened
in a subtransaction stays open even if the subtransaction is aborted, so
any temporary files related to it must stay alive as well. With the patch,
we use ResourceOwners to track open temporary files and don't automatically
close them at subtransaction end (though in the normal case temporary files
are registered with the subtransaction resource owner and will therefore be
closed).

At end of top transaction, we still check that there's no temporary files
marked as close-at-end-of-transaction open, but that's now just a debugging
cross-check as the resource owner cleanup should've closed them already.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/storage/file:
        fd.c (r1.115.4.2 -> r1.115.4.3)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/file/fd.c?r1=1.115.4.2&r2=1.115.4.3)
    pgsql/src/backend/utils/resowner:
        resowner.c (r1.9.4.1 -> r1.9.4.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/resowner/resowner.c?r1=1.9.4.1&r2=1.9.4.2)
    pgsql/src/include/utils:
        resowner.h (r1.5 -> r1.5.4.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/resowner.h?r1=1.5&r2=1.5.4.1)

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

Предыдущее
От: heikki@postgresql.org (Heikki Linnakangas)
Дата:
Сообщение: pgsql: Fix bug in temporary file management with subtransactions.
Следующее
От: itagaki@pgfoundry.org (User Itagaki)
Дата:
Сообщение: orafce - orafce: Add an encoding option to utl_file.fopen() per