[COMMITTERS] pgsql: Document and use SPI_result_code_string() - Mailing list pgsql-committers

From Peter Eisentraut
Subject [COMMITTERS] pgsql: Document and use SPI_result_code_string()
Date
Msg-id E1dzvhH-0006GW-FK@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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>

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

pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: [COMMITTERS] pgsql: Msvc doesn't know UINT16_MAX, replace with PG_UINT16_MAX.
Next
From: Robert Haas
Date:
Subject: [COMMITTERS] pgsql: Fix more user-visible elog() calls.