pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Remove surplus call to table_finish_bulk_insert
3+ messages / 3 participants
[nested] [flat]
* pgsql: Remove surplus call to table_finish_bulk_insert
@ 2019-07-01 15:17 David Rowley <drowley@postgresql.org>
2019-07-01 15:33 ` Re: pgsql: Remove surplus call to table_finish_bulk_insert Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: David Rowley @ 2019-07-01 15:17 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Remove surplus call to table_finish_bulk_insert
4de60244e added the call to table_finish_bulk_insert to the
CopyMultiInsertBufferCleanup function. We use a CopyMultiInsertBuffer even
for non-partitioned tables, so having the cleanup do that meant we would
call table_finsh_bulk_insert twice when performing COPY FROM with
a non-partitioned table.
Here we can just remove the direct call in CopyFrom and let
CopyMultiInsertBufferCleanup handle the call instead.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b2d69806d8cc902802a7b56ba37fb7c55e58b0ed
Modified Files
--------------
src/backend/commands/copy.c | 2 --
1 file changed, 2 deletions(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Remove surplus call to table_finish_bulk_insert
2019-07-01 15:17 pgsql: Remove surplus call to table_finish_bulk_insert David Rowley <drowley@postgresql.org>
@ 2019-07-01 15:33 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-07-01 15:46 ` Re: pgsql: Remove surplus call to table_finish_bulk_insert David Rowley <david.rowley@2ndquadrant.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2019-07-01 15:33 UTC (permalink / raw)
To: David Rowley <drowley@postgresql.org>; +Cc: pgsql-committers@lists.postgresql.org
David Rowley <drowley@postgresql.org> writes:
> Remove surplus call to table_finish_bulk_insert
This still blows up immediately with -DRELCACHE_FORCE_RELEASE
(cf prion).
I think at this point you should revert and try again later.
This is blocking making the v12 branch, and it obviously needs
more thought.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Remove surplus call to table_finish_bulk_insert
2019-07-01 15:17 pgsql: Remove surplus call to table_finish_bulk_insert David Rowley <drowley@postgresql.org>
2019-07-01 15:33 ` Re: pgsql: Remove surplus call to table_finish_bulk_insert Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-07-01 15:46 ` David Rowley <david.rowley@2ndquadrant.com>
0 siblings, 0 replies; 3+ messages in thread
From: David Rowley @ 2019-07-01 15:46 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: David Rowley <drowley@postgresql.org>; pgsql-committers@lists.postgresql.org
On Tue, 2 Jul 2019 at 03:33, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> David Rowley <drowley@postgresql.org> writes:
> > Remove surplus call to table_finish_bulk_insert
>
> This still blows up immediately with -DRELCACHE_FORCE_RELEASE
> (cf prion).
>
> I think at this point you should revert and try again later.
> This is blocking making the v12 branch, and it obviously needs
> more thought.
Yeah, you're right :( done.
--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-07-01 15:46 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-07-01 15:17 pgsql: Remove surplus call to table_finish_bulk_insert David Rowley <drowley@postgresql.org>
2019-07-01 15:33 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-07-01 15:46 ` David Rowley <david.rowley@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox