Thread: pgsql: Make path_recv() and poly_recv() reject paths/polygons containing

pgsql: Make path_recv() and poly_recv() reject paths/polygons containing

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Make path_recv() and poly_recv() reject paths/polygons containing no points.
The zero-point case is sensible so far as the data structure is concerned,
so maybe we ought to allow it sometime; but right now the textual input
routines for these types don't allow it, and it seems that not all the
functions for the types are prepared to cope.
Report and patch by Merlin Moncure.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        geo_ops.c (r1.97 -> r1.98)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/geo_ops.c?r1=1.97&r2=1.98)