将 psql 复制为 select 从 table 到 csv 文件时看到高 writeiops
when doing psql copy as select from table to csv file seeing high writeiops
通过从 table 中选择将 psql 复制到 csv 时。与读取 iops 相比,我们看到写入 iops 更高。偏高是什么原因
写入导致文件而不是数据库时写入 iops?
对于在 seq 扫描期间发生大量写入的最合理的解释是提示位功能。
来自 https://wiki.postgresql.org/wiki/Hint_Bits :
PostgreSQL's MVCC mechanism provides a lot of useful features, but
there are some confusing side effects of the implementation. One
revolves around hint bit processing, which can result in heavy writes
to a database table even though you're just reading from it.
通过从 table 中选择将 psql 复制到 csv 时。与读取 iops 相比,我们看到写入 iops 更高。偏高是什么原因 写入导致文件而不是数据库时写入 iops?
对于在 seq 扫描期间发生大量写入的最合理的解释是提示位功能。
来自 https://wiki.postgresql.org/wiki/Hint_Bits :
PostgreSQL's MVCC mechanism provides a lot of useful features, but there are some confusing side effects of the implementation. One revolves around hint bit processing, which can result in heavy writes to a database table even though you're just reading from it.