From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add tests for COPY in PL/pgSQL
Date: Sat, 09 Nov 2019 05:58:25 +0000
Message-ID: <E1iTJlR-0007YI-PO@gemulon.postgresql.org> (raw)
Add tests for COPY in PL/pgSQL
This stresses the error handling of COPY inside SPI which does not
support the operation using stdin or stdout, and these scenarios were
not tested up to now.
Author: Mark Dilger
Discussion: https://postgr.es/m/a6e9b130-7fd5-387b-4ec5-89bda24373ab@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1858b105b05fcded43e9f2b767dec7268431043b
Modified Files
--------------
src/pl/plpgsql/src/Makefile | 4 +-
src/pl/plpgsql/src/data/copy1.data | 3 +
src/pl/plpgsql/src/expected/.gitignore | 1 +
src/pl/plpgsql/src/input/plpgsql_copy.source | 62 +++++++++++++++++++
src/pl/plpgsql/src/output/plpgsql_copy.source | 89 +++++++++++++++++++++++++++
src/pl/plpgsql/src/sql/.gitignore | 1 +
6 files changed, 158 insertions(+), 2 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add tests for COPY in PL/pgSQL
In-Reply-To: <E1iTJlR-0007YI-PO@gemulon.postgresql.org>
References: <E1iTJlR-0007YI-PO@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox