pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: file_fdw: Add on_error and log_verbosity options to file_fdw.
Date: Thu, 03 Oct 2024 06:58:59 +0000
Message-ID: <E1swFnf-001xtq-2b@gemulon.postgresql.org> (raw)

file_fdw: Add on_error and log_verbosity options to file_fdw.

In v17, the on_error and log_verbosity options were introduced for
the COPY command. This commit extends support for these options
to file_fdw.

Setting on_error = 'ignore' for a file_fdw foreign table allows users
to query it without errors, even when the input file contains
malformed rows, by skipping the problematic rows.

Both on_error and log_verbosity options apply to SELECT and ANALYZE
operations on file_fdw foreign tables.

Author: Atsushi Torikoshi
Reviewed-by: Masahiko Sawada, Fujii Masao
Discussion: https://postgr.es/m/ab59dad10490ea3734cf022b16c24cfd@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a1c4c8a9e1e3a53996dafa1f4ee6d4f7de2c58b2

Modified Files
--------------
contrib/file_fdw/expected/file_fdw.out |  19 ++++++
contrib/file_fdw/file_fdw.c            | 107 ++++++++++++++++++++++++++++-----
contrib/file_fdw/sql/file_fdw.sql      |   7 +++
doc/src/sgml/file-fdw.sgml             |  23 +++++++
4 files changed, 140 insertions(+), 16 deletions(-)



Message-ID: <E1swFnf-001xtq-2b@gemulon.postgresql.org>
Permalink:  ../E1swFnf-001xtq-2b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1swFnf-001xtq-2b@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: file_fdw: Add on_error and log_verbosity options to file_fdw.
  In-Reply-To: <E1swFnf-001xtq-2b@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