pgsql: Check after errors of SPI_execute() in xml.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Check after errors of SPI_execute() in xml.c
Date: 2019-11-07 02:13:43
Message-ID: E1iSXIt-0001UL-T2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Check after errors of SPI_execute() in xml.c

SPI gets used to build a list of relation OIDs for XML object
generation, and one code path building a list uses SPI_execute() without
looking at errors it produces. So fix that.

Author: Mark Dilger
Reviewed-by: Michael Paquier, Pavel Stehule
Discussion: https://postgr.es/m/17d30445-4862-7917-170f-84328dcd292d@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3feb6ace7cfe8edbf6db702de06dc9295f307a8e

Modified Files
--------------
src/backend/utils/adt/xml.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2019-11-07 04:03:28 pgsql: Add reusable routine for making arrays unique.
Previous Message Tomas Vondra 2019-11-06 18:12:04 pgsql: Document log_transaction_sample_rate as superuser-only