Re: BUG #18130: \copy fails with "could not read block" or "page should be empty but not" errors due to triggers

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: enderstd@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2023-09-25T20:14:10Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I'm trying to copy a CSV file to a table and it errors out with different
> error messages every time:

Thank you for the report and reproducible test case!  It looks to me
like this is probably a bug in our new logic for extending tables
more than one block at a time, and the connection to triggers is
accidental.  I brought it up in a thread that was already discussing
the extension logic [1].

			regards, tom lane

[1] https://www.postgresql.org/message-id/257696.1695670946%40sss.pgh.pa.us



Commits

  1. Fix bulk table extension when copying into multiple partitions