Re: Parallel copy
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Cc: Ants Aasma <ants@cybertec.at>, Robert Haas <robertmhaas@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>, vignesh C <vignesh21@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, Alastair Turner <minion@decodable.me>, Thomas Munro <thomas.munro@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-04-15T17:15:45Z
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 →
-
Allow WaitLatch() to be used without a latch.
- 733fa9aa51c5 14.0 cited
-
Add %P to log_line_prefix for parallel group leader
- b8fdee7d0ca8 14.0 cited
-
Include replication origins in SQL functions for commit timestamp
- b1e48bbe64a4 14.0 cited
-
Avoid useless buffer allocations during binary COPY FROM.
- cd22d3cdb9bd 14.0 cited
Hi, On 2020-04-15 20:36:39 +0530, Kuntal Ghosh wrote: > I was thinking from this point of view - the sooner we introduce > parallelism in the process, the greater the benefits. I don't really agree. Sure, that's true from a theoretical perspective, but the incremental gains may be very small, and the cost in complexity very high. If we can get single threaded splitting of rows to be >4GB/s, which should very well be attainable, the rest of the COPY work is going to dominate the time. We shouldn't add complexity to parallelize more of the line splitting, caring too much about scalable datastructures, etc when the bottleneck after some straightforward optimization is usually still in the parallelized part. I'd expect that for now we'd likely hit scalability issues in other parts of the system first (e.g. extension locks, buffer mapping). Greetings, Andres Freund