Re: Custom table AMs need to include heapam.h because of BulkInsertState
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>, Robert Haas <robertmhaas@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-07-18T01:20:18Z
Lists: pgsql-hackers
Hi, On 2019-07-18 11:57:44 +1200, David Rowley wrote: > However, I spent quite a bit of time trying to make that function as > fast as possible in v12, and since #2 seems like a perfectly good > alternative, I'd rather go with that than to add pollution to > ExecFindPartition's signature. Also, #2 seems better since it keeps > CopyFrom() from having to maintain a list. I think we all agreed > somewhere that that code is more complex than we'd all like it to be. Fair enough. One last thought for #1: I was wondering about is whether a the bool * approach might be useful for nodeModifyTable.c too? I thought that maybe that could be used to avoid some checks for setting up per partition state, but it seems not to be the case ATM. Greetings, Andres Freund
Commits
-
Fix missing calls to table_finish_bulk_insert during COPY, take 2
- f7c830f1ab26 13.0 landed
- b8ef33b2d145 12.0 landed
-
Fix missing call to table_finish_bulk_insert during COPY
- 4de60244e2fc 12.0 landed