数据目录中扩展名为.1、.2或.3的文件是什么

Kok*_*zzu 2 postgresql

为什么我的 PostgreSQL 数据库文件夹中有以 .1 .2 .3 结尾的文件?

-rw------- 1 postgres postgres 1073741824 Oct 11 09:32 412rw95.2
-rw------- 1 postgres postgres   67100672 Oct 11 09:32 41295.3
-rw------- 1 postgres postgres 1073741824 Oct 11 09:07 41296
-rw------- 1 postgres postgres 1073741824 Oct 11 07:27 41296.1
Run Code Online (Sandbox Code Playgroud)

eck*_*kes 5

PostgreSQL文档对此进行了描述:

当表或索引超过 1 GB 时,它会被划分为 GB 大小的段。第一段的文件名与文件节点相同;后续段被命名为 filenode.1、filenode.2 等。