Execute INSERT during a parallel operation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Execute INSERT during a parallel operation

Donald Dong
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