Re: [Patch] New pg_stat_tablespace view

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: [Patch] New pg_stat_tablespace view
Date: 2026-10-12 23:33:33
Message-ID: CAGRkXqQAP+jspenndKS-QPZ3RMBnJ4Kc_bLBdHCg8xROA=andA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Zoslot,

Thanks for reviewing my patch.

> There's still an issue with tablespaces no backend touched after
> resetting stats (crashing):

v12 creates the entry when the tablespace of a relation changes, in
the same place that credits the old tablespace with what was counted
before the move. The table lives in the new tablespace at that point,
so it cannot be dropped underneath us. The recovery test now has your
scenario,.

Thanks,
Shihao

Attachment Content-Type Size
pg_stat_tablespace-v12.patch application/octet-stream 87.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message harrisontbooth 2026-10-12 23:37:27 Re: [PATCH v2] Fix races in Windows pthread emulation
Previous Message Michael Paquier 2026-10-12 23:05:02 Re: [PATCH] Clear walsender reader pointers after cleanup