Re: Custom table AMs need to include heapam.h because of BulkInsertState

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-06-07T12:55:36Z
Lists: pgsql-hackers
On Thu, Jun 6, 2019 at 10:29 PM Michael Paquier <michael@paquier.xyz> wrote:
> One thing which is a bit tricky is that for example with COPY FROM we
> have a code path which is able to release a buffer held by the bulk
> insert state.

Are you talking about the call to ReleaseBulkInsertStatePin, or something else?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Commits

  1. Fix missing calls to table_finish_bulk_insert during COPY, take 2

  2. Fix missing call to table_finish_bulk_insert during COPY