Execute INSERT during a parallel operation

From: Donald Dong <xdong(at)csumb(dot)edu>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Execute INSERT during a parallel operation
Date: 2019-04-14 02:11:09
Message-ID: 38FFEBCF-760F-4680-82FE-9A8A412BE1CC@csumb.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I'm trying to use the SPI to save the executed plans in the ExecutorEnd. When the plan involves multiple workers, the insert operations would trigger an error: cannot execute INSERT during a parallel operation.

I wonder if there's a different hook I can use when there's a gather node? or other ways to get around?

Thank you,
Donald Dong

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chapman Flack 2019-04-14 06:49:57 doc: datatype-table and xfunc-c-type-table
Previous Message Peter Geoghegan 2019-04-13 23:22:25 Re: Zedstore - compressed in-core columnar storage