Be more consistent about reporting SPI errors in the various PLs.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ad4d2e9711194e5c0c8dd00ff458085bf2a56c0c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-07-31T20:55:45Z
Releases: 8.0.0
Be more consistent about reporting SPI errors in the various PLs.
Create a shared function to convert a SPI error code into a string
(replacing near-duplicate code in several PLs), and use it anywhere
that a SPI function call error is reported.

Files

PathChange+/−
src/backend/executor/spi.c modified +63 −1
src/include/executor/spi.h modified +2 −1
src/pl/plperl/spi_internal.c modified +16 −75
src/pl/plpgsql/src/pl_exec.c modified +26 −18
src/pl/plpgsql/src/pl_handler.c modified +11 −9
src/pl/plpython/plpython.c modified +12 −42
src/pl/tcl/pltcl.c modified +7 −79