Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bttsp-0000K2-JB for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Oct 2016 10:02:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bttso-0008FE-W9 for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Oct 2016 10:02:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bttsA-0006nJ-9T for pgsql-bugs@postgresql.org; Tue, 11 Oct 2016 10:01:22 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btts5-0004DH-JR for pgsql-bugs@postgresql.org; Tue, 11 Oct 2016 10:01:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id C83A421C39C5 for ; Tue, 11 Oct 2016 13:01:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mBlC4GVho2TP for ; Tue, 11 Oct 2016 13:01:15 +0300 (MSK) Received: from [192.168.27.190] (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 66AE021C36CD for ; Tue, 11 Oct 2016 13:01:15 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1476180075; bh=I+5Olwm1GZTFNxSgFi1XBvK9c49FD/n9ZNbYkKsy0xg=; h=To:From:Subject:Date; b=NgTcSKnZHs2bXh6cyBSFzJLPc85wnqN8K+4X+eOF+muCFr6XtCkaVE7+oqFtw8W63 e8GWEcEyHy+nBoLjSOwGWJaccD7taZQkJUzKsWoI97R4rOafu9zbbiey3QkVc8+g76 4DIG/8QbDV2F/JJBROepv6APv9gfDnKMzJj18TeQ= To: pgsql-bugs@postgresql.org From: Grigory Smolkin Subject: parallel plan in insert query Message-ID: <2950428a-2b07-03cb-4ec0-7454853fe244@postgrespro.ru> Date: Tue, 11 Oct 2016 13:01:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------5D97936B00AEADDA2B309956" X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is a multi-part message in MIME format. --------------5D97936B00AEADDA2B309956 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, everyone! I have a query with following plan: https://gist.github.com/gsmol/a0e752a3f003330a85e2bf243516a2d6 It fails with: ERROR: cannot start commands during a parallel operation I was under impression that for a write query no parallel plan will every be generated. Am I missed something? -- Grigory Smolkin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --------------5D97936B00AEADDA2B309956 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hello, everyone!

I have a query with following plan:
https://gist.github.com/gsmol/a0e752a3f003330a85e2bf243516a2d6

It fails with:
ERROR: cannot start commands during a parallel operation

I was under impression that for a write query no parallel plan will every be generated.
Am I missed something?


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