Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features)
Andy Fan <zhihuifan1213@163.com>
From: zhihuifan1213@163.com
To: Damir Belyalov <dam.bel07@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Daniel Gustafsson <daniel@yesql.se>,
torikoshia <torikoshia@oss.nttdata.com>, PostgreSQL Hackers
<pgsql-hackers@postgresql.org>, Andres Freund <andres@anarazel.de>,
anisimow.d@gmail.com, HukuToc@gmail.com, Andrey Lepikhov
<a.lepikhov@postgrespro.ru>, Alena Rybakina <lena.ribackina@yandex.ru>,
pgsql-hackers@lists.postgresql.org
Date: 2023-11-15T01:23:27Z
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
Damir Belyalov <dam.bel07@gmail.com> writes: > Here is a very straw-man-level sketch of what I think might work. > The option to COPY FROM looks something like > > ERRORS TO other_table_name (item [, item [, ...]]) > > I tried to implement the patch using a table and came across a number of questions. > > Which table should we implement for this feature: a system catalog table or store this table as a file or create a new > table? I think system catalog should not be a option at the first place since it requires more extra workload to do. see the calls of IsCatalogRelation in heapam.c. I prefer to create a new normal heap relation rather than a file since heap realtion probabaly have better APIs. > In these cases, security and user rights management issues arise. > It is better for other users not to see error lines from another > user. It is also not clear how access rights to this > table are inherited and be given. How about creating the table just allowing the current user to read/write or just same as the relation we are copying to? -- Best Regards Andy Fan