Обсуждение: pgsql: Add tests for COPY in PL/pgSQL

Поиск
Список
Период
Сортировка

pgsql: Add tests for COPY in PL/pgSQL

От
Michael Paquier
Дата:
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(-)