Document and use SPI_result_code_string()
Peter Eisentraut <peter_e@gmx.net>
Document and use SPI_result_code_string() A lot of semi-internal code just prints out numeric SPI error codes, which is not very helpful. We already have an API function to convert the codes to a string, so let's make more use of that. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Files
| Path | Change | +/− |
|---|---|---|
| contrib/spi/refint.c | modified | +3 −3 |
| contrib/spi/timetravel.c | modified | +1 −1 |
| doc/src/sgml/spi.sgml | modified | +53 −0 |
| src/backend/utils/adt/ri_triggers.c | modified | +5 −5 |
| src/test/regress/regress.c | modified | +1 −1 |