gpt4 book ai didi

postgresql - autovacuum 中的 Postgres pg_toast - 哪个表?

转载 作者:行者123 更新时间:2023-11-29 11:10:58 25 4
gpt4 key购买 nike

我有一个在 pg_toast 上运行的 autovacuum 进程:

select query, from pg_stat_activity where query like '%autov%';
"autovacuum: VACUUM pg_toast.pg_toast_15404513 "

我如何找出这个 pg_toast 属于哪个表/索引/什么?还是 autovacuum 在做其他事情?

最佳答案

这里有一个更短的方法:

select 15404513::regclass;

其中 15404513pg_toast_ 后缀。

关于postgresql - autovacuum 中的 Postgres pg_toast - 哪个表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18456026/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com