SPI API and exceptions

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: fix bgworkers in EXEC_BACKEND
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: Performance Improvement by reducing WAL for Update Operation