dbTalk Databases Forums  

Error: query is too long. Maximum length is 16382

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Error: query is too long. Maximum length is 16382 in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rajan Bhide
 
Posts: n/a

Default Error: query is too long. Maximum length is 16382 - 02-17-2004 , 08:52 AM






Hi Folks,

Following is the Error string returned by Postgres Server for insert query of approx 32k in length.

Postgres Version : 7.2.4
PQsendQuery() -- query is too long. Maximum length is 16382.

Is this limit modifiable by changing BLCKSZ of include/config.h as suggested in forum?
http://archives.postgresql.org/pgsql...7/msg00398.php

What changes to be done to able to perform insert of approx 32k with a single query?

Also where can I find the latest documentated Maximum Length for the Query?

Thanks in advance,
Rajan



Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: Error: query is too long. Maximum length is 16382 - 02-17-2004 , 09:19 AM






"Rajan Bhide" <rbhide (AT) nulinkinc (DOT) com> writes:
Quote:
Postgres Version : 7.2.4
PQsendQuery() -- query is too long. Maximum length is 16382.
That error message has not existed in libpq since sometime before 7.0.
Better take another look at the age of your client-side code.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.