| От | Peter Eisentraut |
|---|---|
| Тема | SPI API and exceptions |
| Дата | |
| Msg-id | 1356682025.20017.4.camel@vanquo.pezone.net обсуждение исходный текст |
| Ответы |
Re: SPI API and exceptions
|
| Список | pgsql-hackers |
SPI was invented before there was proper exception handling, so it communicates errors by return values. This makes programming with SPI either prone to errors of omission, or very ugly (ultimately, the standard reasons why exceptions were invented). So I was pondering whether we could introduce exceptions to SPI in some way. I'm not sure how. We could invent an entirely separate set of functions, or do some tricks in the header that things before differently depending on some #define. Any ideas?
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера