[pg-devel] Fwd: MAX_MESSAGE_LEN; broken link to cvs snapshot

Johan Ur Riise johan at riise-data.no
Mon Oct 8 18:16:43 UTC 2007


On Monday 08 October 2007 14:18, Anton Vodonosov wrote:
> Hello.
>
> There is a constant, +MAX_MESSAGE_LEN+  = 8192 in pg.lisp. My sql
> statements sometimes exceed this value because criteria are generated
> programmatically. In this case I get an error "sql statement too
> long".
>
> It looks like this constant is unnecessary. I've changed it to large
> value and large sql statements (> 40kb) work well. Also I've checked
> documentation for libpq cleint functions - no max query length is
> mentioned.
Yes, this limit was removed in CVS some time ago.



More information about the pg-devel mailing list