Announcing explain-running-query - print the execution plan of a running query

From: Marcin Barczynski <mbarczynski(at)starfishstorage(dot)com>
To: pgsql-announce(at)lists(dot)postgresql(dot)org
Subject: Announcing explain-running-query - print the execution plan of a running query
Date: 2020-01-30 10:55:57
Message-ID: CAOhG4wdNDQeaSkdW-Zb3FX2Xa1b9b4ZNyaJQUHUUqGigtuU-EA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce

Starfish Storage has released explain-running-query.py which is a script
that prints the execution plan of a running query in PostgreSQL.

It comes in handy when PostgreSQL gets stuck running a query. Without the
script, the best one can do is run EXPLAIN with the same query text. Still,
the plan doesn't have to be the same as the original, because PostgreSQL
relies heavily on table statistics when planning a query and those might
have changed since the original query started.

The script is available at
https://github.com/StarfishStorage/explain-running-query

--
Marcin Barczyński
Starfish Storage: http://starfishstorage.com/

Browse pgsql-announce by date

  From Date Subject
Next Message Ilya Kosmodemiansky 2020-01-31 06:47:06 PG Day Russia 2020 CFP and registration are open
Previous Message Esteban Zimanyi 2020-01-29 15:44:40 MobilityDB 1.0 beta1 is now released