title: ST_Covers: Geography Implementation is not working, Geometry Implementation taking too long
body: <p>I have a query: (This query uses geographical implementation of ST_Covers function)</p>
  
  <pre><code>SELECT ST_Covers(ST_GeoGraphyFromText('MULTIPOLYGON(((179 -89,179 89,-179 89,-179 -89,179 -89)))'),ST_GeographyFromText('POINT(20 30)'));
  </code></pre>
  
  <p>When I run this query it <strong>should return true but it returns false.</strong> I don't know whats wrong with PostGIS (or with this query)</p>
  
  <p>and when i changes geographical implementation with geometrical one, and <strong>rearrange the query to be like below:</strong></p>
  
  <pre><code>SELECT ST_Covers(ST_ASTEXT(ST_GeoGraphyFromText('MULTIPOLYGON(((179 -89,179 89,-179 89,-179 -89,179 -89)))')),text('POINT(20 30)'));
  </code></pre>
  
  <p><strong>it works as it should, returning true:</strong></p>
  
  <p>I can use below query to be content but <strong>Problem is when database is too large it takes too much time</strong></p>
  
  <p>Please can someone tell me</p>
  
  <p>how to make query 1 to work right (as intended, returning true), or</p>
  
  <p>how to make query 2 work fast with large tables</p>
  
  <p>(please do not suggest that i should remove *ST_GeoGraphyFromText('MULTIPOLYGON(((179 -89,179 89,-179 89,-179 -89,179 -89)* because it only represents geographical data that will be replaced by data from the column of table )</p>
  
  <p>other values with which query 1 dont work are (5 5) (10 10) (-10 -10) and much more</p>