Check after errors of SPI_execute() in xml.c
authorMichael Paquier <[email protected]>
Thu, 7 Nov 2019 02:13:31 +0000 (11:13 +0900)
committerMichael Paquier <[email protected]>
Thu, 7 Nov 2019 02:13:31 +0000 (11:13 +0900)
commit3feb6ace7cfe8edbf6db702de06dc9295f307a8e
tree2d6c6474f87170102a877fa850ef30281451a515
parent6e3e6cc0e884a6091e1094dff29db430af08fb93
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
src/backend/utils/adt/xml.c