pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_stat_progress_vacuum empty when running vacuum full
3+ messages / 3 participants
[nested] [flat]

* pg_stat_progress_vacuum empty when running vacuum full
@ 2021-02-12 11:00  Luca Ferrari <fluca1978@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Luca Ferrari @ 2021-02-12 11:00 UTC (permalink / raw)
  To: pgsql-general <pgsql-general@lists.postgresql.org>

Hi all,
I'm running 11.5 and I'm monitoring pg_stat_progress_vacuum every 2
seconds, while doing from another connection per-table VACUUMs. Every
vacuum last 30 or more seconds, so I was expecting to see a record
within pg_stat_progress_vacuum, but nothing appears if the vacuum is
full. I suspect this is due to vacuum full performing a side-by-side
table rewriting, rather than in-place actions against the original
table, but I'm not sure if this is real reason or if I'm missing
something.

Thanks,
Luca





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_stat_progress_vacuum empty when running vacuum full
@ 2021-02-12 11:17  Ian Lawrence Barwick <barwick@gmail.com>
  parent: Luca Ferrari <fluca1978@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Ian Lawrence Barwick @ 2021-02-12 11:17 UTC (permalink / raw)
  To: Luca Ferrari <fluca1978@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

2021年2月12日(金) 20:01 Luca Ferrari <fluca1978@gmail.com>:

> Hi all,
> I'm running 11.5 and I'm monitoring pg_stat_progress_vacuum every 2
> seconds, while doing from another connection per-table VACUUMs. Every
> vacuum last 30 or more seconds, so I was expecting to see a record
> within pg_stat_progress_vacuum, but nothing appears if the vacuum is
> full. I suspect this is due to vacuum full performing a side-by-side
> table rewriting, rather than in-place actions against the original
> table, but I'm not sure if this is real reason or if I'm missing
> something.
>
>
If you're executing VACUUM FULL, you should be looking at
pg_stat_progress_cluster:


https://www.postgresql.org/docs/current/progress-reporting.html#CLUSTER-PROGRESS-REPORTING

Though that doesn't appear until Pg 12.

Regards

Ian Barwick
-- 
EnterpriseDB: https://www.enterprisedb.com

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_stat_progress_vacuum empty when running vacuum full
@ 2021-02-12 11:19  luis.roberto@siscobra.com.br
  parent: Luca Ferrari <fluca1978@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: luis.roberto@siscobra.com.br @ 2021-02-12 11:19 UTC (permalink / raw)
  To: Luca Ferrari <fluca1978@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

> De: "Luca Ferrari" <fluca1978@gmail.com>
> Para: "pgsql-general" <pgsql-general@lists.postgresql.org>
> Enviadas: Sexta-feira, 12 de fevereiro de 2021 8:00:46
> Assunto: pg_stat_progress_vacuum empty when running vacuum full

> Hi all, 
> I'm running 11.5 and I'm monitoring pg_stat_progress_vacuum every 2 
> seconds, while doing from another connection per-table VACUUMs. Every 
> vacuum last 30 or more seconds, so I was expecting to see a record 
> within pg_stat_progress_vacuum, but nothing appears if the vacuum is 
> full. I suspect this is due to vacuum full performing a side-by-side 
> table rewriting, rather than in-place actions against the original 
> table, but I'm not sure if this is real reason or if I'm missing 
> something. 
> 
> Thanks, 
> Luca 


Hi!

I believe VACUUM FULL progress can be monitored via the pg_stat_progress_cluster command: https://www.postgresql.org/docs/current/progress-reporting.html#VACUUM-PROGRESS-REPORTING





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-02-12 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 11:00 pg_stat_progress_vacuum empty when running vacuum full Luca Ferrari <fluca1978@gmail.com>
2021-02-12 11:17 ` Ian Lawrence Barwick <barwick@gmail.com>
2021-02-12 11:19 ` luis.roberto@siscobra.com.br

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox