Re: Is it safe to ignore the return value of SPI_finish andSPI_execute?
В списке pgsql-hackers по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Is it safe to ignore the return value of SPI_finish andSPI_execute? |
| Дата | |
| Msg-id | 20190611190356.GA27130@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: Is it safe to ignore the return value of SPI_finish and SPI_execute? (Mark Dilger <hornschnorter@gmail.com>) |
| Список | pgsql-hackers |
On 2019-May-22, Mark Dilger wrote: > On Wed, May 22, 2019 at 1:52 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Figuring out what fraction > > that should be is part of the work --- but just in a quick scan through > > spi.c, it seems like there might be a case for deprecating practically > > all the SPI_ERROR_xxx codes except for SPI_ERROR_NOATTRIBUTE. > > I'd definitely argue that SPI_ERROR_UNCONNECTED and SPI_ERROR_ARGUMENT > > deserve that treatment. > > > > I'm for it, if you want to do the work, but I don't speak for everybody. > > I do want to write the patch, but I'll wait for other opinions. In my perusal, the SPI API is unnecessarily baroque and could stand some simplification, so +1 for the proposed approach. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера