PostgreSQLだけでそれを行う方法はありません。独自のC関数を作成する必要があります。
PostGIS拡張機能を使用すると、pathをキャストできます geometryへ そこで操作を実行します:
SELECT array_agg(CAST(geom AS point))
FROM st_dumppoints(CAST(some_path AS geometry));
PostgreSQLだけでそれを行う方法はありません。独自のC関数を作成する必要があります。
PostGIS拡張機能を使用すると、pathをキャストできます geometryへ そこで操作を実行します:
SELECT array_agg(CAST(geom AS point))
FROM st_dumppoints(CAST(some_path AS geometry));