libpq query length limit

From: Charles Seaton <cseaton(at)stccmop(dot)org>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: libpq query length limit
Date: 2008-04-06 23:58:57
Message-ID: 47F963C1.7070100@stccmop.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I am using libpq to access a PostgreSQL 8.2.7 database.

I am encountering segfault errors when the query length exceeds some
value greater than 633 characters and less than 2492 characters. The
database log shows the message
LOG: 08P01: unexpected EOF on client connection

The query that causes problems through libpq can be run directly in psql
without a problem.

Is there a limit on the length of a query, and is there a way around this?

thanks,

Charles Seaton

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Francisco Figueiredo Jr. 2008-04-07 05:58:24 Npgsql2 Beta3 Released!
Previous Message meskes 2008-03-23 18:14:17 Re: ECPG connection timeouts