By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
SELECT ST_DistanceSphere(
'SRID=4326;POINT(-4.56 54.17)'::geometry,
'SRID=4326;POINT(-4.49 54.15)'::geometry),
ST_Distance( -- computed over a spheroid
'SRID=4326;POINT(-4.56 54.17)'::geography,
'SRID=4326;POINT(-4.49 54.15)'::geography);
st_distancesphere | st_distance |
---|---|
5071.1616871 | 5085.78620104 |
SELECT 1