相关疑难解决方法(0)

Estimate end time for a long update

我目前正在运行一个很长的更新(基于 postgisst_within条件的~ 百万行),根据以前的类似查询预计将在一个小时左右完成。然而,已经三个小时了;系统监控显示它在那个时候将单个 CPU 固定在 100%。

有什么办法可以查看本次更新的进度,估计预计什么时候结束?

postgresql

8
推荐指数
2
解决办法
2546
查看次数

为什么我的 Postgres 9.6 创建索引并发无效?

我正在尝试在生产中同时创建索引。\d然而,这样做时,通过查看时的索引会显示INVALID

为什么会这样呢?以前从未见过这种情况发生。

尝试过重新创建,但仍然遇到同样的问题:

指数:

create index concurrently idx_wallet_customer_id_credit_stake_expires on wallet (customer_id,wallet_credit_stake,wallet_expires)
where wallet_closed is null and wallet_staked is null;
Run Code Online (Sandbox Code Playgroud)

postgresql index concurrency

4
推荐指数
1
解决办法
1544
查看次数

标签 统计

postgresql ×2

concurrency ×1

index ×1