<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Progress Reporting on Postgres Scripts</title><link>https://www.postgresscripts.com/tags/progress-reporting/</link><description>Recent content in Progress Reporting on Postgres Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>PostgresScripts.com</copyright><lastBuildDate>Thu, 18 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.postgresscripts.com/tags/progress-reporting/index.xml" rel="self" type="application/rss+xml"/><item><title>Monitor PostgreSQL ANALYZE Progress with pg_stat_progress_analyze</title><link>https://www.postgresscripts.com/post/monitor-postgresql-analyze-progress-with-pg-stat-progress-analyze/</link><pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate><guid>https://www.postgresscripts.com/post/monitor-postgresql-analyze-progress-with-pg-stat-progress-analyze/</guid><description>
&lt;h2 id="monitor-postgresql-analyze-progress-with-pg_stat_progress_analyze"&gt;Monitor PostgreSQL ANALYZE Progress with pg_stat_progress_analyze&lt;/h2&gt;
&lt;p&gt;Running &lt;code&gt;ANALYZE&lt;/code&gt; on a multi-hundred-gigabyte table and wondering whether it is halfway done or barely started is a common operational question with, until recently, no good answer. &lt;code&gt;pg_stat_progress_analyze&lt;/code&gt; answers it: a live view that reports the current phase of every running ANALYZE and how many sample blocks it has scanned.&lt;/p&gt;
&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1012089347386563"
crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1012089347386563"
data-ad-slot="7945792173"
data-ad-format="auto"
data-full-width-responsive="true"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h2 id="purpose-and-overview"&gt;Purpose and Overview&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;ANALYZE&lt;/code&gt; collects column statistics that the query planner depends on to choose good plans. On a small table it finishes in milliseconds and nobody thinks about it. On a very large table, or one with many child partitions, it can run for minutes, and during that window two questions matter: is it actually making progress, and how long until it is done. A manual &lt;code&gt;ANALYZE&lt;/code&gt; issued before a big read-heavy job, or an autovacuum-launched analyze competing for I/O, both raise the same need for visibility.&lt;/p&gt;</description></item></channel></rss>