<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>Hi,<br></div>
<div><br></div>
<div>Looking for official documentation or guidance regarding the usage of ST_DWithin, ST_Distance and <->, especially when it comes to using indices. For example, the <a href="https://postgis.net/docs/ST_Distance.html">ST_Distance page</a> itself doesn't mention that the function will not use indices.<br></div>
<div><br></div>
<div>For example: <br></div>
<div>If I want to get the closest point to another, why can't ST_Distance use an index, but <-> can?<br></div>
<div>Is there anyway to get a distance in meters or some other unit from the <-> operator on geography types?<br></div>
<div>if ST_DWithin and <-> and other similar functions/operators should be used when dealing with distance, what's the use case for ST_Distance?<br></div>
<div><br></div>
<div>Regards,<br></div>
<div>Eric St-Georges</div>
<div><br></div>
</body>
</html>