Postgres - 索引分区

Postgres - indexes partitioning

我在超快(且昂贵)的 SSD 上安装了 psql (12) 数据库 - 在那里工作得很好 然而,我的数据库正在快速增长,所以与其将财富投资于 SSD 扩展,不如考虑安装更便宜的基于标准(磁性)HDD 的磁盘卷。

我阅读了有关 table 分区的内容,这可能对这里有帮助,但我找不到有关索引的信息? 这些是否也可以分区/存储在 2 个不同的卷上,具体取决于 table 分区所在的位置?

这对我来说非常重要,因为索引几乎是最大索引的 30% table

感谢您的意见/建议

The documentation 说:

Create an index [...] on the partitioned table. [...] This automatically creates one index on each partition, and any partitions you create or attach later will also contain the index.

所以是的,索引将像 table 一样进行分区。