pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Grigory Smolkin <g.smolkin@postgrespro.ru>
To: pgsql-bugs@postgresql.org
Subject: Re: parallel plan in insert query
Date: Tue, 11 Oct 2016 14:48:19 +0300
Message-ID: <a5193373-f255-322e-415a-84d92d562843@postgrespro.ru> (raw)
In-Reply-To: <CAM-w4HNETsJS0+KPwF-ar7FRiSdz9PmM9A=XCAVL6gqxEkukEQ@mail.gmail.com>
References: <2950428a-2b07-03cb-4ec0-7454853fe244@postgrespro.ru>
	<CAM-w4HNETsJS0+KPwF-ar7FRiSdz9PmM9A=XCAVL6gqxEkukEQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

It`s INSERT:
2016-10-07 19:41:41 MSK [11404]: [78416-1] 
user=gis,db=gis,app=psql,client=[local] STATEMENT:
explain analyze insert into edges_snapped_speeds select gid, speed*3600, 
ts from (select * from traffic_snapped_tracks limit 2) a join lateral 
snaptopgr(geom) on true;

It does qualify query as 'write query'?

On 10/11/2016 02:41 PM, Greg Stark wrote:
> The query doesn't look like a write query from the sql or the plan you
> sent. My guess is that one of the PostGIS
> functions does an update or insert internally. It should probably be
> marked VOLATILE in that case which I'm not sure but would assume would
> disable parallel queries as well. But there are reasons why they might
> not want to do that too in which case this is the kind of risk that
> would come with.
>
>

-- 
Grigory Smolkin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

view thread (6+ messages)  latest in thread

Message-ID: <a5193373-f255-322e-415a-84d92d562843@postgrespro.ru>
Permalink:  ../a5193373-f255-322e-415a-84d92d562843@postgrespro.ru/
Also on:    postgresql.org/message-id/a5193373-f255-322e-415a-84d92d562843@postgrespro.ru

 · 

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-bugs@postgresql.org
  Cc: g.smolkin@postgrespro.ru
  Subject: Re: parallel plan in insert query
  In-Reply-To: <a5193373-f255-322e-415a-84d92d562843@postgrespro.ru>
  References: <2950428a-2b07-03cb-4ec0-7454853fe244@postgrespro.ru> <CAM-w4HNETsJS0+KPwF-ar7FRiSdz9PmM9A=XCAVL6gqxEkukEQ@mail.gmail.com> <a5193373-f255-322e-415a-84d92d562843@postgrespro.ru>

* 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