Re: trivial fix in fd.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trivial fix in fd.c
Дата
Msg-id 16274.1148309524@sss.pgh.pa.us
обсуждение исходный текст
Ответ на trivial fix in fd.c  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Список pgsql-patches
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> What's the rationale of designing resowner
> APIs like this:

>     ResourceOwnerEnlargeABC();
>     ResourceOwnerRememberABC();

> Is that because sometimes we don't allow any elog in
> ResourceOwnerRememberABC()?

Yeah.  In a number of cases, ResourceOwnerRememberABC is done after
inserting the resource into some data structure, and an elog there
would leave the data structure in an inconsistent state.  Conversely,
we might fail to insert the resource into the other data structure,
so just inserting it into the resowner first isn't better.

            regards, tom lane

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

Предыдущее
От: "Qingqing Zhou"
Дата:
Сообщение: trivial fix in fd.c
Следующее
От: Simon Riggs
Дата:
Сообщение: archiver.pid