[postgis-tickets] [PostGIS] #3418: KNN recheck in 9.5 fails with index returned tuples in wrong order when used in function

PostGIS trac at osgeo.org
Wed Dec 21 15:21:35 PST 2016


#3418: KNN recheck in 9.5 fails with index returned tuples in wrong order when
used in function
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.4.0
 Component:  postgis  |    Version:  2.2.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by nwilson5):

 I am getting this error as well. It exists for postgresql 9.5 and 9.6 for
 me, but not on 9.4 (even using same postgis version).

 easily replicated doing this on a fresh database:
 {{{
 test=# create extension postgis;
 test=# create table test (geo geometry);
 test=# insert into test values
   ('0101000020E61000007D91D0967329E4BF6631B1F9B8D64A40'::geometry),
   ('0101000020E6100000E2AFC91AF510C1BFCDCCCCCCCCAC4A40'::geometry);
 test=# create index on test using gist (geo);
 test=# vacuum analyze test;
 test=# set enable_seqscan = false;
 test=# select * from test ORDER BY geo::geometry <->
 ('0101000020E610000092054CE0D6DDE5BFCDCCCCCCCCAC4A40'::geometry);

 ERROR:  index returned tuples in wrong order
 }}}

 I would get this error on:[[BR]]
 Postgres 9.5.5 + Postgis 2.2.2[[BR]]
 Postgres 9.6.1 + Postgis 2.3.1[[BR]]

 I did not get this error on:[[BR]]
 Postgres 9.4.6 + Postgis 2.1.8[[BR]]
 Postgres 9.4.10 + Postgis 2.3.1[[BR]]


 Also reported here with no interest https://www.postgresql.org/message-
 id/20161212221748.14892.42910%40wrigleys.postgresql.org

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3418#comment:7>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list