Re: Please implement a catch-all error handler per row, for COPY

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: me nefcanto <sn(dot)1361(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Please implement a catch-all error handler per row, for COPY
Date: 2025-03-01 16:31:08
Message-ID: c7b85d55-e5bb-4677-84f9-d560b6c21285@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/1/25 07:18, me nefcanto wrote:
> Hello
>
>
> All of these scenarios are such that data sanitation is difficult if not
> possible before doing the bulk operation (copy).
>
> I realized that when we specify `on_error ignore` it just handles a
> handful of errors. I thought this was a bug and sent an email to the
> pgsql-bugs maling list. But they said it's the intended behavior.
>

Take a look at:

http://ossc-db.github.io/pg_bulkload/index.html

and

https://pgloader.io/

They may be able to meet your needs.

>
> Regards
> Saeed

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2025-03-01 16:35:54 Re: Please implement a catch-all error handler per row, for COPY
Previous Message Tom Lane 2025-03-01 16:20:12 Re: Please implement a catch-all error handler per row, for COPY