SPI API and exceptions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject SPI API and exceptions
Date
Msg-id 1356682025.20017.4.camel@vanquo.pezone.net
Whole thread Raw
Responses Re: SPI API and exceptions
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: fix bgworkers in EXEC_BACKEND
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Performance Improvement by reducing WAL for Update Operation