Re: Report error position in partition bound check
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: Report error position in partition bound check |
| Дата | |
| Msg-id | 20200409011103.GJ1606@paquier.xyz обсуждение |
| Ответ на | Report error position in partition bound check (Alexandra Wang <lewang@pivotal.io>) |
| Ответы |
Re: Report error position in partition bound check
|
| Список | pgsql-hackers |
On Wed, Apr 08, 2020 at 05:15:57PM -0700, Alexandra Wang wrote: > I have attached a patch to pass in a ParseState to > check_new_partition_bound() to enable the reporting of the error > position. Below is what the error message looks like before and after > applying the patch. > > Another option is to not pass the parser_errposition() argument at all > to ereport() in this function, since the query is relatively short and > the error message is already descriptive enough. It depends on the complexity of the relation definition, so adding a position looks like a good idea to me. Anyway, even if this looks like an oversight to me, we are post feature freeze for 13 and that's an improvement, so this looks like material for PG14 to me. Are there more opinions on the matter? Please note that you forgot to update the regression test output. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера