Re: Tuplestore should remember the memory context it's created in
В списке pgsql-hackers по дате отправления:
| От | Heikki Linnakangas |
|---|---|
| Тема | Re: Tuplestore should remember the memory context it's created in |
| Дата | |
| Msg-id | 4B31E1D7.2020408@enterprisedb.com обсуждение исходный текст |
| Ответ на | Re: Tuplestore should remember the memory context it's created in (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: > Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes: >> But we don't use tuplesort to return tuples from functions, so it's not >> broken in a user-visible way. Unless you can think of another scenario >> like that. > > (1) create a cursor whose plan involves a sort that will spill to disk > (2) enter subtransaction > (3) fetch from cursor (causing the sort to actually happen) > (4) leave subtransaction > (5) fetch some more from cursor > > Too busy to develop a test case right now, but ISTM it ought to fail. That was exactly the case that we originally fixed, that caused this PL/pgSQL issue. It works because cursors run within the portal ResourceOwner. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера