Re: Re: Bug: WAIT FOR LSN crashes with assertion failure inside PL/pgSQL DO blocks and procedures
В списке pgsql-hackers по дате отправления:
| От | Alexander Korotkov |
|---|---|
| Тема | Re: Re: Bug: WAIT FOR LSN crashes with assertion failure inside PL/pgSQL DO blocks and procedures |
| Дата | |
| Msg-id | CAPpHfdts2dMoMvCbUtbYHYFXWbfi9WM-pz2ZzJwE3NaYcGsTWg@mail.gmail.com обсуждение |
| Ответ на | Re: Re: Bug: WAIT FOR LSN crashes with assertion failure inside PL/pgSQL DO blocks and procedures (Xuneng Zhou <xunengzhou@gmail.com>) |
| Список | pgsql-hackers |
On Fri, Apr 10, 2026 at 10:36 AM Xuneng Zhou <xunengzhou@gmail.com> wrote: > I’ve revised the patch. Moving the non–top-level rejection to the > beginning of the function may help avoid unnecessary parsing and > validation work, although it could make the reasoning slightly less > localized. > > Since this is user-facing, should we explicitly document this > constraint to make the behavior less surprising? The rejection applies > not only to wrapping the command in a procedure or function, but also > within a DO block. > > It might also be worth adding a regression test and refining the error > message accordingly. With this new constraint, some existing comments > were outdated and have been updated as well. Accepted, thank you. Also, I've added errdetail() to clarify when the statement could be not top-level. Pushed. ------ Regards, Alexander Korotkov Supabase
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера