| От | Tom Lane |
|---|---|
| Тема | pgsql: Fix gin_leafpage_items(). |
| Дата | |
| Msg-id | E1c2h6G-0002KM-GG@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Fix gin_leafpage_items(). On closer inspection, commit 84ad68d64 broke gin_leafpage_items(), because the aligned copy of the page got palloc'd in a short-lived context whereas it needs to be in the SRF's multi_call_memory_ctx. This was not exposed by the regression test, because the regression test doesn't actually exercise the function in a meaningful way. Fix the code bug, and extend the test in what I hope is a portable fashion. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/367b99bbb13a14bd96bba6f73c231b2056ba9592 Modified Files -------------- contrib/pageinspect/expected/gin.out | 11 +++++++++-- contrib/pageinspect/ginfuncs.c | 6 +++--- contrib/pageinspect/sql/gin.sql | 9 +++++++-- 3 files changed, 19 insertions(+), 7 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера