ERROR: cannot start subtransactions during a parallel operation

From: Mai Peng <maily(dot)peng(at)webedia-group(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: ERROR: cannot start subtransactions during a parallel operation
Date: 2018-06-29 14:00:44
Message-ID: 90C7C1DA-36D8-46CC-9D81-80BACA603A40@webedia-group.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

On a pG10.4 instance, my query ( a simple select from a view) throw this error:
ERROR: cannot start subtransactions during a parallel operation
CONTEXT: PL/pgSQL function check_validity(ltree[]) line 4 during statement block entry

But prefixing this query by "set max_parallel_workers_gather=0" make it works.

When I take off the column that is checked by a function, no need to add set max_parallel_workers_gather=0 .

How could I continue to use the default max_parallel_workers_gather (2).

Thank you

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2018-06-29 14:31:51 Re: Fix to not check included columns in ANALYZE on indexes
Previous Message Daniel Gustafsson 2018-06-29 13:49:10 Re: CREATE TABLE .. LIKE .. EXCLUDING documentation