ビューを作成すると、エラーが発生しますfunction populate_geometry_columns(unknown) is not unique
。私が読んでいる本はこれを使用していましたが、エラーが発生しました。私にとって何がうまくいかなかったのでしょうか?
クエリ:
CREATE OR REPLACE VIEW ch03.vw_paris_points AS
SELECT gid, osm_id, ar_num, geom,
tags->'name' As place_name,
tags->'tourism' As tourist_attraction
FROM ch03.paris_hetero
WHERE ST_GeometryType(geom) = 'ST_Point';
SELECT populate_geometry_columns('ch03.vw_paris_points');
エラー:
ERROR: function populate_geometry_columns(unknown) is not unique
LINE 1: SELECT populate_geometry_columns('ch03.vw_paris_points');
^
HINT: Could not choose a best candidate function. You might need to add explicit type casts.
********** Error **********
ERROR: function populate_geometry_columns(unknown) is not unique
SQL state: 42725
Hint: Could not choose a best candidate function. You might need to add explicit type casts.
Character: 8