| От | Andrew Chernow |
|---|---|
| Тема | Re: libpq object hooks |
| Дата | |
| Msg-id | 482E443B.8080903@esilo.com обсуждение исходный текст |
| Ответ на | Re: libpq object hooks (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-patches |
Tom Lane wrote: > ISTM the hook > ought to be able to request that libpq return an out-of-memory failure > for the query, just as would happen if the malloc failure had happened > directly to libpq. > > I am working on this new patch and that is how I have been implementing it. If the eventProc function returns FALSE for creation events (not destruction events), the libpq call that triggered it will fail. For instance: for the creation of result objects "PGEVT_RESULTCREATE", I am clearing the result and returning an error value. I think that is the expected behavior when one calls PQexec and an out-of-memory failure occurs. -- Andrew Chernow eSilo, LLC every bit counts http://www.esilo.com/
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера