Re: auto_explain.log_min_duration is limit for nested statement - Mailing list pgsql-docs

From Bruce Momjian
Subject Re: auto_explain.log_min_duration is limit for nested statement
Date
Msg-id 20191107034230.GC12478@momjian.us
Whole thread Raw
In response to auto_explain.log_min_duration is limit for nested statement  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
On Mon, Nov  4, 2019 at 07:11:48AM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/12/auto-explain.html
> Description:
> 
> Hello,
> 
> I had problem with setup auto_explain.log_min_duration for COPY command on
> table with triggers. I set minimum duration to '2s' but no plan logged
> (duration of COPY command was above this limit). I thought that this
> extension not working with COPY command. After some testing I investigate
> that extension is working becouse duration limit is for nested statement
> (query in trigger) not for base statement (COPY) - it will be fine write
> somewere in documentation.

COPY doesn't go through the optimizer, so there is nothing to explain,
e.g.,

    test=> EXPLAIN COPY test FROM STDIN;
    ERROR:  syntax error at or near "COPY"
    LINE 1: EXPLAIN COPY test FROM STDIN;
                    ^

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +



pgsql-docs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Small typo in func.sgml
Next
From: PG Doc comments form
Date:
Subject: Nit: "Immutable" should be "pure"