[postgis-tickets] [PostGIS] #4165: ST_AsText hangs backend

PostGIS trac at osgeo.org
Thu Sep 6 13:05:37 PDT 2018


#4165: ST_AsText hangs backend
-----------------------+---------------------------
  Reporter:  komzpa    |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  critical  |  Milestone:  PostGIS 2.5.0
 Component:  postgis   |    Version:  trunk
Resolution:            |   Keywords:
-----------------------+---------------------------

Comment (by pramsey):

 Continuing on w/ this, unfortunately the caller doesn't really know how
 big a buffer is required, since the "digits" parameter is about the number
 of digits after the decimal point, so the actual size of the whole number
 part is going to determine the how wide a buffer is needed.

 Functional question: are arbitrarily large values of digits a required
 feature, or would just not crapping out in this case, and returning
 shortened results be acceptable?

 Another possibility: just making the static buffer much larger (256 bytes,
 say) and also removing the assert would provide "reasonable" numbers of
 digits supported, and get rid of the failure case for assholes who decide
 they want 512 digits of formatting. I think I like that best.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4165#comment:5>
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