| From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
|---|---|
| To: | Alex K <kondratov(dot)aleksey(at)gmail(dot)com> |
| Cc: | Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>, Стас <stas(dot)kelvich(at)gmail(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
| Subject: | Re: GSOC'17 project introduction: Parallel COPY execution with errors handling |
| Date: | 2017-04-10 16:55:12 |
| Message-ID: | CA+TgmoaeTPcGWOOe693ksm=kqdvs7ovsoO2OJKky5ybqLi3g7w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Apr 10, 2017 at 11:39 AM, Alex K <kondratov(dot)aleksey(at)gmail(dot)com> wrote:
> (1) It seems that starting new subtransaction at step 4 is not necessary. We
> can just gather all error lines in one pass and at the end of input start
> the only one additional subtransaction with all safe-lines at once: [1, ...,
> k1 - 1, k1 + 1, ..., k2 - 1, k2 + 1, ...], where ki is an error line number.
The only way to recover from an error is to abort the subtransaction,
or to abort the toplevel transaction. Anything else is unsafe.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2017-04-10 16:57:07 | Re: pg_upgrade vs extension upgrades |
| Previous Message | Robert Haas | 2017-04-10 16:53:38 | Re: pg_upgrade vs extension upgrades |