Postgres (DBeaver) 在 ST_Transform 之后报告 0 个更改的行

Postgres (DBeaver) reporting 0 changed rows after ST_Transform

当我执行时:

ALTER TABLE london_all_nodes ALTER COLUMN geom TYPE geometry(Point, 27700) USING ST_TRANSFORM(geom, 27700);

Dbeaver 统计数据 window 报告 Updated Rows = 0

当我用

检查数据时
SELECT * FROM london_all_nodes LIMIT 5;

geom 列看起来按预期进行了转换,但似乎 updated rows 应该等于 table 中的行数,不是吗?

根据@a_horse_with_no_name 的评论,并由 documentation "ALTER TABLE changes the definition of an existing table." ALTER TABLE 确认作用于列,而不是任何单独的行。

因此列中的每个单元格都已更改,但它认为行未更改。