Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqJtd-0007fL-85 for pgsql-performance@arkaria.postgresql.org; Fri, 08 Sep 2017 14:04:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dqJtc-0007Tf-R1 for pgsql-performance@arkaria.postgresql.org; Fri, 08 Sep 2017 14:04:36 +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 1dqJrr-0003zk-2r for pgsql-performance@postgresql.org; Fri, 08 Sep 2017 14:02:47 +0000 Received: from mail-yw0-x231.google.com ([2607:f8b0:4002:c05::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dqJrj-0007WU-6x for pgsql-performance@postgresql.org; Fri, 08 Sep 2017 14:02:45 +0000 Received: by mail-yw0-x231.google.com with SMTP id s62so7754941ywg.0 for ; Fri, 08 Sep 2017 07:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XX3Xz9bEDIslE9YQabPpyZAZCEfp8VxPIrY6r9vbbz8=; b=AYCEaSrFtfoVYnyoBSxgjmWaeLav/6GWQNaSQvePBAuTD1Hst/yjuQQteBvCfSVTrZ s3a4OtOkoSHm7fDBt7SnaDhdgsduxGPXyqNfqzACUFNq2i9KphHE3ZdZF2BjcJyaioN+ VWwHWq6ZbgSUTBeDQe3tLZtzWL/K1FbTramTRrm8Y33NyCN7Td4QSLQVdS6YCfpW0GYy DTmN9/ZAf9LfsWS5r2p8GwqYkqcVUj6v0fNS2d/vzQVJsix4WHjTntW+0eooyBivt4Nm DqMos9p/MCdKCoNlsHhSFX0XyMwgDyCQuCfgzhU00hJXT+Ug1FyyTQ6ZAKwTHgK0w6n3 pvoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XX3Xz9bEDIslE9YQabPpyZAZCEfp8VxPIrY6r9vbbz8=; b=Ksctw+ckuF2h2DcaRvAyjUSSbVjcTFSxC6k4eBEJ2sQ5OYfEhjTwjUrypyenC6Qbj2 jFgXwk7JunRUK0tbdQopIx8vyIy2sFkLhzU0ZEPgPNGGDiQ3IclE+0USp1Jjzxq7Z4Ck HCQWCgdKY1QxP2gVFyCxYlNIXu2L79tvPZOQjbGwTqUtOGS/dKRveihFfgvWTuivbbNZ xo+IofSvloX6/YscKFcKP/1EKQjGEzLuJh4MsEllQXaur8kODYAX0nRSymPpaLhjbyFR 0oOtSOMqfYLLG0/9LRfKEB00FDsMVbc/B1MPOjCLVpszmro7WZsOOljZWJQS/jLCuE0z qStw== X-Gm-Message-State: AHPjjUj2VRGybIBgKBgEImCXjVpZft3dp78cXYJPi2hC+C11jTNAiKhy GuErikQp7k1zZoAdS3egMp8Z4Mavag== X-Google-Smtp-Source: ADKCNb6r7JB4xYt190RrXmvPWzTiFk6lyNuHmVJ03WFGXODaFXgArD4sY2MqVpu6k+qk2yAFJKwNCxKwoxVEAujNc6Y= X-Received: by 10.13.213.149 with SMTP id x143mr2648203ywd.123.1504879357927; Fri, 08 Sep 2017 07:02:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.73.199 with HTTP; Fri, 8 Sep 2017 07:02:37 -0700 (PDT) In-Reply-To: <15789.1504878289@sss.pgh.pa.us> References: <15789.1504878289@sss.pgh.pa.us> From: Neto pr Date: Fri, 8 Sep 2017 07:02:37 -0700 Message-ID: Subject: Re: Explain Analyze - actual time in loops To: Tom Lane Cc: Igor Neyman , "pgsql-performance@postgresql.org" Content-Type: multipart/alternative; boundary="001a114fc1568f40530558ae07be" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --001a114fc1568f40530558ae07be Content-Type: text/plain; charset="UTF-8" Thanks for reply Tom and Igor. Just only more information: I need to know the height of a B-tree index (level of the leaf node farthest from the root). I tried to find this data in PG_INDEXES and PG_CLASS views, but I did not find it. Does anyone know if Postgresql stores this information, referring to the height of the index tree? Regards 2017-09-08 6:44 GMT-07:00 Tom Lane : > Neto pr writes: > > After analyzing, I saw that in some places of the plan, it is being used > > Parallelism. Does this explain why the final value spent (in minutes) to > go > > through the index (184 minutes) is greater than the total query time (66 > > minutes)? > > I was just about to ask you about that. If this is under a Gather node, > I believe that the numbers include time expended in all processes. > So if you had three or more workers these results would make sense. > > regards, tom lane > --001a114fc1568f40530558ae07be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for reply Tom and Igor.

Just only= more information:

I need to know the height of a B-tree index (leve= l of the leaf node farthest from the root).

I tried to find this dat= a in PG_INDEXES and PG_CLASS views, but I did not find it.
Does anyone k= now if Postgresql stores this information, referring to the height of the i= ndex tree?

Regards


2017-09-08 6:44 GMT-07:00 Tom Lane = <tgl@sss.pgh.pa.u= s>:
Neto p= r <netopr9@gmail.com> writes= :
> After analyzing, I saw that in some places of the plan, it is being us= ed
> Parallelism. Does this explain why the final value spent (in minutes) = to go
> through the index (184 minutes) is greater than the total query time (= 66
> minutes)?

I was just about to ask you about that.=C2=A0 If this is under a Gat= her node,
I believe that the numbers include time expended in all processes.
So if you had three or more workers these results would make sense.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regards, tom lane

--001a114fc1568f40530558ae07be--