Re: PQsendQuery: Query is too long

From: Doug McNaught <doug(at)wireboard(dot)com>
To: Henrik Steffen <steffen(at)city-map(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQsendQuery: Query is too long
Date: 2002-01-16 16:06:16
Message-ID: m36662wa9z.fsf@varsoon.denali.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Henrik Steffen <steffen(at)city-map(dot)de> writes:

> Hello all,
>
> when doing larger queries, e.g. an insert of lots of text,
> I always get "Query too long" if the query is longer then 8192 bytes.
>
> a) What exactly is the reason for this limitation? (postgres, libpq or Pg.pm?)

You don't say what software versions you're using. The 8k tuple-size
limit has been gone in PG since 7.1, but many client-side libraries
still enforce an 8k query limit for basically stupid reasons.

> b) What can I do to avoid this limitation?

Upgrade.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-01-16 16:10:32 Re: PQsendQuery: Query is too long
Previous Message Tom Lane 2002-01-16 15:57:42 Re: oid problem with dumping database (failed sanity check, opr with oid 280515 was not found)