agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: explain analyze cost
Date: Wed, 12 Dec 2018 16:45:43 -0600
Message-ID: <01ad39ba-d283-875f-6121-76141a6a4874@gmail.com> (raw)
In-Reply-To: <1544654267.3583234.1607577016.1555678D@webmail.messagingengine.com>
References: <HE1PR0402MB3625F9C2E5735459D63DA27C93A70@HE1PR0402MB3625.eurprd04.prod.outlook.com>
<d5acdc15-fbba-0a85-95c1-082bb6d60e0b@portavita.eu>
<CAN_ctnh4_f0SLNhm06NwutGHE5_Bx5hrn_0DskJJRW6kTEqnwQ@mail.gmail.com>
<HE1PR0402MB3625FC1878598594295EC30993A70@HE1PR0402MB3625.eurprd04.prod.outlook.com>
<CAN_ctnhpRDJmQaBVZM6008RkLYdCwtYx17ytx3yDeVkJoJ7o2w@mail.gmail.com>
<1544654267.3583234.1607577016.1555678D@webmail.messagingengine.com>
On 12/12/2018 04:37 PM, Ravi Krishna wrote:
> I am running explain analyze cost on a SQL which reads from two large
> tables (122mil and 37 mil). The query is an UPDATE SQL where we use
> derives table in the from clause and then join it back to the table being
> updated.
>
> The explain analyze cost itself is taking forever to run. It is running
> for the last 1 hr. Does that actually run the SQL to find out the impact
> of I/O (as indicated in COSTS).
Yes.
https://www.postgresql.org/docs/9.6/sql-explain.html
"The ANALYZE option causes the statement to be actually executed, not only
planned."
> If not, what can cause it to run this slow.
>
--
Angular momentum makes the world go 'round.
view thread (4+ messages) latest in thread
Message-ID: <01ad39ba-d283-875f-6121-76141a6a4874@gmail.com>
Permalink: ../01ad39ba-d283-875f-6121-76141a6a4874@gmail.com/
Also on: postgresql.org/message-id/01ad39ba-d283-875f-6121-76141a6a4874@gmail.com
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-general@lists.postgresql.org
Subject: Re: explain analyze cost
In-Reply-To: <01ad39ba-d283-875f-6121-76141a6a4874@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox