ERROR: cannot start subtransactions during a parallel operation - Mailing list pgsql-hackers

From Mai Peng
Subject ERROR: cannot start subtransactions during a parallel operation
Date
Msg-id 90C7C1DA-36D8-46CC-9D81-80BACA603A40@webedia-group.com
Whole thread Raw
Responses Re: ERROR: cannot start subtransactions during a parallel operation
List 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

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: CREATE TABLE .. LIKE .. EXCLUDING documentation
Next
From: Teodor Sigaev
Date:
Subject: Re: Fix to not check included columns in ANALYZE on indexes