Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brJOP-0008Hn-6G for pgsql-docs@arkaria.postgresql.org; Tue, 04 Oct 2016 06:39:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1brJOO-00074T-2S for pgsql-docs@arkaria.postgresql.org; Tue, 04 Oct 2016 06:39:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1brJON-00074L-Mz for pgsql-docs@postgresql.org; Tue, 04 Oct 2016 06:39:55 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1brJOK-00070z-U8 for pgsql-docs@postgresql.org; Tue, 04 Oct 2016 06:39:55 +0000 Received: by mail-lf0-x22f.google.com with SMTP id b75so41163935lfg.3 for ; Mon, 03 Oct 2016 23:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version; bh=38BI4Ib0nYLVOZSEuyHYDBZFXb+zT+BwLFDvOv3LITY=; b=jJcPU2lkrGt3eCbor7q3Nbll9YuZJBfJd0C1LNoMkYa9c8ceiRp8kWDKRQzC7TaBLI xt7Z3CHWdLYk1Nb/2wrtM9yTCSakiFs3CmSlZO5kVlfThMWhsAl7QANqAxdGLAgzMV87 MWXeuksbFh6eH2kjfQtvZWI4Q7VTU3Y1IIU5NHyqznBQdReTsBv2ttmxmrnpKJkrBh8H tjEtbEhAiQvT++HtxCah2KnjhK+l31cEIgJFP2yYgppREYCuaFj3z7QwJaattPDIN0aU eNKoWbwYOVgni1D9UzRKx74QLeA88Rf3dkrKWFoen2mP4GGqE6L7UvoPPdJercqjpo8C vUpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=38BI4Ib0nYLVOZSEuyHYDBZFXb+zT+BwLFDvOv3LITY=; b=LvdcCOXOm+soBBWSNHDqdEo/P8/H9aZJ18uZE3im0DyXrn9EaPOanj3birEO9vJO7U FrkREQ3eZ0vNh4EOEfgWIrP2sWHFEHXpHQhvub3iQYsRNYvqUTfPzu0X+qKIA2IVkY19 vb2gTjQe0v6kuGLz3SAptRwa1O2T4e47Qq85s8HpVvqM98ouzy6ilbFf75dVbR4mkHZz tS5zZsaY+iG5ubpCrFFdT1gHZAumlc1LZVFHjAw3kd8xzqT/+bdf0RImNJjC55b7PmnJ 9Ax9wvDDDAz30SSNct3Wkr3wwdUIUmU1b9r5XEMhZ/QoXpGp6x95EgqTLOxmwiHdXopw /FrA== X-Gm-Message-State: AA6/9RmBzBmuzk77rntleVz1+X9wEMh8azb+B09MTAH9U+74SqUsc+JA9/Rbias7w/N6zg== X-Received: by 10.46.71.85 with SMTP id u82mr638970lja.19.1475563191475; Mon, 03 Oct 2016 23:39:51 -0700 (PDT) Received: from [1.0.0.7] ([109.196.196.178]) by smtp.gmail.com with ESMTPSA id 84sm401318ljf.33.2016.10.03.23.39.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Oct 2016 23:39:50 -0700 (PDT) To: pgsql-docs@postgresql.org From: Alexander Law Subject: Several fixes for parallel.sgml Message-ID: Date: Tue, 4 Oct 2016 09:39:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------BC4AD125B08DD8F1953F6D75" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------BC4AD125B08DD8F1953F6D75 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, Please consider committing a couple of corrections for parallel.sgml. Best regards, Alexander --------------BC4AD125B08DD8F1953F6D75 Content-Type: text/x-patch; name="parallel-fixes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="parallel-fixes.patch" diff --git a/doc/src/sgml/parallel.sgml b/doc/src/sgml/parallel.sgml index c80d42d..b8f33b3 100644 --- a/doc/src/sgml/parallel.sgml +++ b/doc/src/sgml/parallel.sgml @@ -148,7 +148,7 @@ EXPLAIN SELECT * FROM pgbench_accounts WHERE filler LIKE '%x%'; which the system thinks that partial or incremental execution might occur, no parallel plan is generated. For example, a cursor created using DECLARE CURSOR will never use - a parallel plan. Similarly, a PL/pgsql loop of the form + a parallel plan. Similarly, a PL/pgSQL loop of the form FOR x IN query LOOP .. END LOOP will never use a parallel plan, because the parallel query system is unable to verify that the code in the loop is safe to execute while parallel query is @@ -189,7 +189,7 @@ EXPLAIN SELECT * FROM pgbench_accounts WHERE filler LIKE '%x%'; Even when parallel query plan is generated for a particular query, there are several circumstances under which it will be impossible to execute that plan in parallel at execution time. If this occurs, the leader - will execute the portion of the plan between below the Gather + will execute the portion of the plan below the Gather node entirely by itself, almost as if the Gather node were not present. This will happen if any of the following conditions are met: @@ -339,7 +339,7 @@ EXPLAIN SELECT * FROM pgbench_accounts WHERE filler LIKE '%x%'; When executing a parallel plan, you can use EXPLAIN (ANALYZE, - VERBOSE) will display per-worker statistics for each plan node. + VERBOSE) to display per-worker statistics for each plan node. This may be useful in determining whether the work is being evenly distributed between all plan nodes and more generally in understanding the performance characteristics of the plan. @@ -421,7 +421,7 @@ EXPLAIN SELECT * FROM pgbench_accounts WHERE filler LIKE '%x%'; Functions and aggregates must be marked PARALLEL UNSAFE if they write to the database, access sequences, change the transaction state - even temporarily (e.g. a PL/pgsql function which establishes an + even temporarily (e.g. a PL/pgSQL function which establishes an EXCEPTION block to catch errors), or make persistent changes to settings. Similarly, functions must be marked PARALLEL RESTRICTED if they access temporary tables, client connection state, --------------BC4AD125B08DD8F1953F6D75 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------BC4AD125B08DD8F1953F6D75--