Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> What is the maximum SQL statement length that the server will accept?
There is no fixed limit, short of where you start to overflow memory
and/or stack depth.
http://archives.postgresql.org/pgsql-general/2001-02/msg00776.php
regards, tom lane