pgsql: Add tests for COPY in PL/pgSQL

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add tests for COPY in PL/pgSQL
Date: 2019-11-09 05:58:25
Message-ID: E1iTJlR-0007YI-PO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-11-09 06:44:36 pgsql: Fix new COPY test of PL/pgSQL with VPATH builds
Previous Message Tom Lane 2019-11-09 01:20:09 Re: pgsql: Fix gratuitous error message variation