Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features)
jian he <jian.universality@gmail.com>
From: jian he <jian.universality@gmail.com>
To: vignesh C <vignesh21@gmail.com>
Cc: Masahiko Sawada <sawada.mshk@gmail.com>,
torikoshia <torikoshia@oss.nttdata.com>, Alena Rybakina <lena.ribackina@yandex.ru>,
Damir Belyalov <dam.bel07@gmail.com>, zhihuifan1213@163.com, Tom Lane <tgl@sss.pgh.pa.us>, Daniel Gustafsson <daniel@yesql.se>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Andres Freund <andres@anarazel.de>, anisimow.d@gmail.com, HukuToc@gmail.com, pgsql-hackers@lists.postgresql.org, Andrei Lepikhov <a.lepikhov@postgrespro.ru>
Date: 2024-01-06T00:50:00Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
doc: Fix COPY ON_ERROR option syntax synopsis.
- f6f8ac8e75c9 17.0 landed
-
Disallow specifying ON_ERROR option without value.
- a6d0fa5ef840 17.0 landed
-
Rename COPY option from SAVE_ERROR_TO to ON_ERROR
- b725b7eec431 17.0 landed
-
Fix spelling in notice
- 58fbbc9d683c 17.0 landed
-
Add new COPY option SAVE_ERROR_TO
- 9e2d8701194f 17.0 landed
Attachments
- v15-0001-Make-COPY-FROM-more-error-tolerant.patch (application/x-patch) patch v15-0001
On Fri, Jan 5, 2024 at 4:37 PM jian he <jian.universality@gmail.com> wrote: > > > > > be reused for a different user. > > > > > > > > > > You are right. > > > so I changed, now the schema owner will be the error table owner. > > > every error table tuple inserts, > > > I switch to schema owner, do the insert, then switch back to the > > > COPY_FROM operation user. > > > now everyone (except superuser) will need explicit grant to access the > > > error table. > > > > There are some compilation issues reported at [1] for the patch: > > [04:04:26.288] copyfromparse.c: In function ‘NextCopyFrom’: > > [04:04:26.288] copyfromparse.c:1126:25: error: ‘copy_errors_tupDesc’ > > may be used uninitialized in this function > > [-Werror=maybe-uninitialized] > > [04:04:26.288] 1126 | copy_errors_tup = heap_form_tuple(copy_errors_tupDesc, > > [04:04:26.288] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > [04:04:26.288] 1127 | t_values, > > [04:04:26.288] | ~~~~~~~~~ > > [04:04:26.288] 1128 | t_isnull); > > [04:04:26.288] | ~~~~~~~~~ > > [04:04:26.288] copyfromparse.c:1160:4: error: ‘copy_errorsrel’ may be > > used uninitialized in this function [-Werror=maybe-uninitialized] > > [04:04:26.288] 1160 | table_close(copy_errorsrel, RowExclusiveLock); > > [04:04:26.288] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > [1] - https://cirrus-ci.com/task/4785221183209472 > > > > I fixed this issue, and also improved the doc. > Other implementations have not changed. bother again. This time, I used the ci test it again. now there should be no warning.