| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера