[COMMITTERS] pgsql: Move SPI error reporting out of ri_ReportViolation() - Mailing list pgsql-committers

From Peter Eisentraut
Subject [COMMITTERS] pgsql: Move SPI error reporting out of ri_ReportViolation()
Date
Msg-id E1dzvhH-0006GT-FM@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Move SPI error reporting out of ri_ReportViolation()

These are two completely unrelated code paths, so it doesn't make sense
to pack them into one function.

Add attribute noreturn to ri_ReportViolation().

Reviewed-by: Michael Paquier <michael.paquier@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/582bbcf37fb45ea2e6a851bf9a3c7d7364c7ad32

Modified Files
--------------
src/backend/utils/adt/ri_triggers.c | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 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.