Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features)

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features)
Дата
Msg-id
739953.1699467519@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
VLDB Features Simon Riggs <simon@2ndquadrant.com>
Re: VLDB Features Josh Berkus <josh@agliodbs.com>
Re: VLDB Features Hannu Krosing <hannu@skype.net>
Re: VLDB Features Josh Berkus <josh@agliodbs.com>
Re: VLDB Features Simon Riggs <simon@2ndquadrant.com>
Re: VLDB Features Simon Riggs <simon@2ndquadrant.com>
Re: VLDB Features Markus Schiltknecht <markus@bluegap.ch>
Re: VLDB Features Josh Berkus <josh@agliodbs.com>
Re: VLDB Features Markus Schiltknecht <markus@bluegap.ch>
Re: VLDB Features Decibel! <decibel@decibel.org>
Re: VLDB Features Gavin Sherry <swm@alcove.com.au>
Re: VLDB Features "Joshua D. Drake" <jd@commandprompt.com>
Re: VLDB Features Gregory Stark <stark@enterprisedb.com>
Re: VLDB Features Markus Schiltknecht <markus@bluegap.ch>
Re: VLDB Features Simon Riggs <simon@2ndquadrant.com>
Re: VLDB Features Neil Conway <neilc@samurai.com>
Re: VLDB Features Hannu Krosing <hannu@skype.net>
Re: VLDB Features Neil Conway <neilc@samurai.com>
Re: VLDB Features Tom Lane <tgl@sss.pgh.pa.us>
Re: VLDB Features Neil Conway <neilc@samurai.com>
Re: VLDB Features Tom Lane <tgl@sss.pgh.pa.us>
Re: VLDB Features Josh Berkus <josh@agliodbs.com>
Re: VLDB Features Tom Lane <tgl@sss.pgh.pa.us>
Re: VLDB Features Hannu Krosing <hannu@skype.net>
Re: VLDB Features Tom Lane <tgl@sss.pgh.pa.us>
Re: VLDB Features Josh Berkus <josh@agliodbs.com>
Re: VLDB Features "Michał Zaborowski" <michal.zaborowski@gmail.com>
Re: VLDB Features NikhilS <nikkhils@gmail.com>
Re: VLDB Features Tom Lane <tgl@sss.pgh.pa.us>
Re: VLDB Features NikhilS <nikkhils@gmail.com>
Re: VLDB Features Simon Riggs <simon@2ndquadrant.com>
Re: VLDB Features Trent Shipley <trent_shipley@qwest.net>
Re: VLDB Features Trent Shipley <trent_shipley@qwest.net>
POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alex Shulgin <ash@commandprompt.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Pavel Stehule <pavel.stehule@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Pavel Stehule <pavel.stehule@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Pavel Stehule <pavel.stehule@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Danil Anisimow <anisimow.d@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Andres Freund <andres@anarazel.de>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Tom Lane <tgl@sss.pgh.pa.us>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Andres Freund <andres@anarazel.de>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Tom Lane <tgl@sss.pgh.pa.us>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Daniel Gustafsson <daniel@yesql.se>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Daniel Gustafsson <daniel@yesql.se>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Andres Freund <andres@anarazel.de>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alena Rybakina <lena.ribackina@yandex.ru>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Tom Lane <tgl@sss.pgh.pa.us>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Andres Freund <andres@anarazel.de>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Tom Lane <tgl@sss.pgh.pa.us>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Andres Freund <andres@anarazel.de>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Daniel Gustafsson <daniel@yesql.se>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Tom Lane <tgl@sss.pgh.pa.us>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) zhihuifan1213@163.com
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Damir Belyalov <dam.bel07@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alena Rybakina <lena.ribackina@yandex.ru>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Andrei Lepikhov <a.lepikhov@postgrespro.ru>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alena Rybakina <lena.ribackina@yandex.ru>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alena Rybakina <lena.ribackina@yandex.ru>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alena Rybakina <lena.ribackina@yandex.ru>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alena Rybakina <lena.ribackina@yandex.ru>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) vignesh C <vignesh21@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Tom Lane <tgl@sss.pgh.pa.us>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Pavel Stehule <pavel.stehule@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) torikoshia <torikoshia@oss.nttdata.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Alexander Korotkov <aekorotkov@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Masahiko Sawada <sawada.mshk@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) zhihuifan1213@163.com
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) jian he <jian.universality@gmail.com>
Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) Nikita Malakhov <hukutoc@gmail.com>
Re: VLDB Features Andrew Dunstan <andrew@dunslane.net>
Re: VLDB Features Greg Smith <gsmith@gregsmith.com>
Re: VLDB Features Neil Conway <neilc@samurai.com>
Re: VLDB Features "Pavel Stehule" <pavel.stehule@gmail.com>
Re: VLDB Features Josh Berkus <josh@agliodbs.com>
Re: VLDB Features Dimitri Fontaine <dfontaine@hi-media.com>
Damir  writes:
> [ v7-0002-Add-new-COPY-option-IGNORE_DATATYPE_ERRORS.patch ]

Sorry for being so late to the party, but ... I don't think this
is a well-designed feature as it stands.  Simply dropping failed rows
seems like an unusable definition for any application that has
pretensions of robustness.  "But", you say, "we're emitting WARNING
messages about it".  That's *useless*.  For most applications WARNING
messages just go into the bit bucket, or worse they cause memory leaks
(because the app never reads them).  An app that tried to read them
would have to cope with all sorts of fun such as translated messages.
Furthermore, as best I can tell from the provided test cases, the
messages completely lack basic context such as which field or line
the problem occurred in.  An app trying to use this to understand
which input lines had failed would not get far.

I think an actually usable feature of this sort would involve
copying all the failed lines to some alternate output medium,
perhaps a second table with a TEXT column to receive the original
data line.  (Or maybe an array of text that could receive the
broken-down field values?)  Maybe we could dump the message info,
line number, field name etc into additional columns.

Also it'd be a good idea to have a vision of how the feature
could be extended to cope with lower-level errors, such as
lines that have the wrong number of columns or other problems
with line-level syntax.  I don't say we need to cope with that
immediately, but it's going to be something people will want
to add, I think.

			regards, tom lane


В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Tomas Vondra
Дата:
FAQ