Jan Nidzwetzki e555eea9db Fix performance regressions in the copy code
In 8375b9aa536a619a5ac2644e0dae3c25880a4ead, a patch was added to handle
chunks closes during an ongoing copy operation. However, this patch
introduces a performance regression. All MultiInsertBuffers are deleted
after they are flushed. In this PR, the performance regression is fixed.
The most commonly used MultiInsertBuffers survive flushing.

The 51259b31c4c62b87228b059af0bbf28caa143eb3 commit changes the way the
per-tuple context is used. Since this commit, more objects are stored in
this context. The size of the context was used to set the tuple size to
PG < 14. The extra objects in the context lead to wrong (very large)
results and flushes almost after every tuple read.

The cache synchronization introduced in
296601b1d7aba7f23aea3d47c617e2d6df81de3e is reverted. With the current
implementation, `MAX_PARTITION_BUFFERS` survive the flash. If
`timescaledb.max_open_chunks_per_insert` is lower than
`MAX_PARTITION_BUFFERS` , a buffer flush would be performed after each
tuple read.
2022-10-21 09:02:03 +02:00
..
2022-08-23 19:40:51 +03:00
2021-06-01 20:21:06 +02:00
2022-08-31 14:14:34 +03:00
2021-10-30 17:41:34 +02:00
2020-09-28 12:15:42 +02:00
2021-06-01 20:21:06 +02:00
2021-10-03 15:20:05 +02:00
2022-08-08 10:14:10 -03:00
2021-06-01 20:21:06 +02:00
2022-08-31 14:14:34 +03:00
2020-09-28 12:15:42 +02:00
2020-10-16 08:55:30 -04:00
2019-08-21 14:37:29 -04:00
2021-06-01 20:21:06 +02:00
2019-01-13 23:30:22 +01:00
2021-06-01 20:21:06 +02:00
2022-08-02 11:38:32 +02:00
2022-10-17 21:17:48 +03:00
2021-06-01 20:21:06 +02:00
2021-06-01 20:21:06 +02:00
2021-06-01 20:21:06 +02:00
2022-05-25 15:28:13 -04:00
2022-04-19 05:16:15 +02:00