From: | Ron <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: explain analyze cost |
Date: | 2018-12-12 22:45:43 |
Message-ID: | 01ad39ba-d283-875f-6121-76141a6a4874@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support pgsql-general pgsql-jdbc pgsql-sql |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-12-12 23:05:45 | Re: explain analyze cost |
Previous Message | Ravi Krishna | 2018-12-12 22:37:47 | explain analyze cost |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-12-12 23:05:45 | Re: explain analyze cost |
Previous Message | Ravi Krishna | 2018-12-12 22:37:47 | explain analyze cost |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-12-12 23:05:45 | Re: explain analyze cost |
Previous Message | Ravi Krishna | 2018-12-12 22:37:47 | explain analyze cost |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-12-12 23:05:45 | Re: explain analyze cost |
Previous Message | Ravi Krishna | 2018-12-12 22:37:47 | explain analyze cost |