Some of the geometry fields that are returned from my PostGIS queries are truncated. When I first found this error any geometry fields with more than a few thousand characters would not show up in the pgAdmin Output Pane. So I changed the
pgAdmin >> Options >> Query Editor >> Max Characters per column to 32,500 and now the geometry field shows up but it is truncated and ends with "(...)" like the following example;
MULTIPOLYGON((( -79.4660582160837 42.211909028322, <<..coordinates>>.. -79.4673861587629 42.212436007559, -79.4673871980406 42.212436150477 (...)
Any query that ends with the "(...)" fails when I attempt to serialize the result. This occurs on any geometries that have more than a couple thousand characters in them.
I'm pretty sure the issue has something to do with these large geometries because I can successfully run geometries that have fewer vertexes.
When I first found this bug I thought it might be restricted to PostgreSQL 9.2 so I installed version 9.3 and have found the same issue. I also reindexed my table and as far as I can tell the table is not corrupt.
I am also using PostGIS 2.2 bundle for PostgreSQL x64 9.3.