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.paqu...@gmail.com> Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/036166f26e00ab3286ef29a6519525d6291fdfd7 Modified Files -------------- contrib/spi/refint.c | 6 ++--- contrib/spi/timetravel.c | 2 +- doc/src/sgml/spi.sgml | 53 +++++++++++++++++++++++++++++++++++++ src/backend/utils/adt/ri_triggers.c | 10 +++---- src/test/regress/regress.c | 2 +- 5 files changed, 63 insertions(+), 10 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers