| От | Tom Lane |
|---|---|
| Тема | Re: Error-safe user functions |
| Дата | |
| Msg-id | 2912239.1671896891@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Error-safe user functions (Ted Yu <yuzhihong@gmail.com>) |
| Список | pgsql-hackers |
Ted Yu <yuzhihong@gmail.com> writes:
> On Fri, Dec 23, 2022 at 1:22 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Yes, it is. We don't want a query-cancel transformed into a soft error.
> The same regex, without user interruption, would exhibit an `invalid
> regular expression` error.
On what grounds do you claim that? The timing of arrival of the SIGINT
is basically chance --- it might happen while we're inside backend/regex,
or not. I mean, sure you could claim that a bad regex might run a long
time and thereby be more likely to cause the user to issue a query
cancel, but that's a stretched line of reasoning.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера