pgsql: Fix bulk table extension when copying into multiple partitions

2023-10-13 Thread Andres Freund
Fix bulk table extension when copying into multiple partitions When COPYing into a partitioned table that does now permit the use of table_multi_insert(), we could error out with ERROR: could not read block NN in file "base/...": read only 0 of 8192 bytes because BulkInsertState->next_free was

pgsql: Fix bulk table extension when copying into multiple partitions

2023-10-13 Thread Andres Freund
Fix bulk table extension when copying into multiple partitions When COPYing into a partitioned table that does now permit the use of table_multi_insert(), we could error out with ERROR: could not read block NN in file "base/...": read only 0 of 8192 bytes because BulkInsertState->next_free was