| От | Alvaro Herrera |
|---|---|
| Тема | Re: [HACKERS] `array_position...()` causes SIGSEGV |
| Дата | |
| Msg-id | 20161209154604.qopgvldhf4pekglq@alvherre.pgsql обсуждение исходный текст |
| Ответ на | [HACKERS] `array_position...()` causes SIGSEGV (Junseok Yang <jsyang@bitnine.net>) |
| Список | pgsql-hackers |
Junseok Yang wrote: > Hello hackers, > > I met SIGSEGV when using `array_position()` with record type > arguments, so I've written a patch which corrects this problem. It > seems that `array_position...()` sets wrong memory context for the > cached function (in this case `record_eq()`) which is used to find a > matching element. Looks correct to me, so pushed to all affected branches. > The problem is reproducable with the following query. > > SELECT array_position(ids, (1, 1)) > FROM (VALUES (ARRAY[(0, 0)]), (ARRAY[(1, 1)])) AS _(ids); I used this as a new regression test. Thanks for the report and patch! -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера