非互換
Fujitsu Enterprise Postgres 17では、名前が競合する場合にもビュー定義を正しく表示するように変更します。
postgres=# create view aliased_order_by as postgres-# select x1 as x2, x2 as x1, x3 from tt1 postgres-# order by x2; -- this is interpreted per SQL92, so really ordering by x1 CREATE VIEW postgres=# \d+ aliased_order_by View "testviewschm2.aliased_order_by" Column | Type | Collation | Nullable | Default | Storage | Description --------+---------+-----------+----------+---------+----------+------------- x2 | integer | | | | plain | x1 | integer | | | | plain | x3 | text | | | | extended | View definition: SELECT x1 AS x2, x2 AS x1, x3 FROM tt1 ORDER BY x1;
postgres=# \d+ aliased_order_by View "testviewschm2.aliased_order_by" Column | Type | Collation | Nullable | Default | Storage | Description --------+---------+-----------+----------+---------+----------+------------- x2 | integer | | | | plain | x1 | integer | | | | plain | x3 | text | | | | extended | View definition: SELECT x1 AS x2, x2 AS x1, x3 FROM tt1 ORDER BY tt1.x1;
対処方法
ありません。