pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mobigroup <pechnikov@mobigroup.ru>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL 12.4 Parallel Query doesn't work while EXPLAIN is OK
Date: Tue, 01 Dec 2020 09:58:07 -0500
Message-ID: <1393711.1606834687@sss.pgh.pa.us> (raw)
In-Reply-To: <3879EBE6-399D-4CAF-9C37-D5CA656DB77C@mobigroup.ru>
References: <7091E3D2-C056-421B-A95C-F2F83EABF9E7@mobigroup.ru>
	<3f8a8eb1422a557b2306391d434019a15d3770af.camel@cybertec.at>
	<3879EBE6-399D-4CAF-9C37-D5CA656DB77C@mobigroup.ru>

mobigroup <pechnikov@mobigroup.ru> writes:
>> Perhaps you didn't define it as PARALLEL SAFE.

> The function is marked as "PARALLEL RESTRICTED” because it’s uses temp tables (and I tested it as PARALLEL SAFE with the same result… parallelisation doesn’t work anyway).

If it writes into temp tables then it can't be run in a worker anyway.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <1393711.1606834687@sss.pgh.pa.us>
Permalink:  ../1393711.1606834687@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1393711.1606834687@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pechnikov@mobigroup.ru
  Subject: Re: PostgreSQL 12.4 Parallel Query doesn't work while EXPLAIN is OK
  In-Reply-To: <1393711.1606834687@sss.pgh.pa.us>
  References: <7091E3D2-C056-421B-A95C-F2F83EABF9E7@mobigroup.ru> <3f8a8eb1422a557b2306391d434019a15d3770af.camel@cybertec.at> <3879EBE6-399D-4CAF-9C37-D5CA656DB77C@mobigroup.ru> <1393711.1606834687@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox