From rmager@vgkk.com Mon Jun 12 08:45:02 2000 Received: from clio.trends.ca (root@clio.trends.ca [209.47.148.2]) by hub.org (8.10.1/8.10.1) with ESMTP id e5C8j2T10325 for ; Mon, 12 Jun 2000 04:45:02 -0400 (EDT) Received: from smtp03.mail.gol.com (smtp03.mail.gol.com [203.216.5.13]) by clio.trends.ca (8.9.3+Sun/8.9.3) with ESMTP id EAA26895 for ; Mon, 12 Jun 2000 04:19:13 -0400 (EDT) Received: from wks02 (tc-2-251.ariake.gol.ne.jp [203.216.43.251]) by smtp03.mail.gol.com (Postfix) with SMTP id 45EA04164 for ; Mon, 12 Jun 2000 17:19:07 +0900 (JST) From: "Rainer Mager" To: Subject: query buffer max length of 16384 exceeded Date: Mon, 12 Jun 2000 17:25:38 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <20000527093210.B29792@vestdata.no> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200006/73 Hi all, I would expect this to be a FAQ but I can't find anything in the docs or on the net. I'm trying to restore a pg_dumped database (via "psql < databasefile") and get this error: query buffer max length of 16384 exceeded Is there anyway to adjust this buffer (preferrably without rebuilding PG)? Or is there a better way to restore a database? Thanks, --Rainer From Michael.Ansley@intecsystems.co.uk Mon Jun 12 13:19:29 2000 Received: from intec003.intecsystems ([194.200.14.121]) by hub.org (8.10.1/8.10.1) with ESMTP id e5CDJTT82679 for ; Mon, 12 Jun 2000 09:19:29 -0400 (EDT) Received: by INTEC003 with Internet Mail Service (5.5.2650.21) id ; Mon, 12 Jun 2000 14:18:11 +0100 Message-ID: <2D50E16224C8D311B183009027452B476AFCAC@INTEC003> From: Michael Ansley To: "'Rainer Mager'" , pgsql-admin@postgresql.org Subject: RE: query buffer max length of 16384 exceeded Date: Mon, 12 Jun 2000 14:18:10 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BFD470.A7C990B6" X-Archive-Number: 200006/76 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFD470.A7C990B6 Content-Type: text/plain; charset="iso-8859-1" I assume that you have a version prior to 7.0. The only way to increase this would be to increate your block size, recompile, and initdb. If you are using 7.0 or above, this is not an issue, as the limit has been removed. Cheers... MikeA >> -----Original Message----- >> From: Rainer Mager [mailto:rmager@vgkk.com] >> Sent: 12 June 2000 09:26 >> To: pgsql-admin@postgresql.org >> Subject: [ADMIN] query buffer max length of 16384 exceeded >> >> >> Hi all, >> >> I would expect this to be a FAQ but I can't find >> anything in the docs or on >> the net. I'm trying to restore a pg_dumped database (via "psql < >> databasefile") and get this error: >> >> query buffer max length of 16384 exceeded >> >> Is there anyway to adjust this buffer (preferrably without >> rebuilding PG)? >> Or is there a better way to restore a database? >> >> >> Thanks, >> >> --Rainer >> ------_=_NextPart_001_01BFD470.A7C990B6 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [ADMIN] query buffer max length of 16384 exceeded

I assume that you have a version prior to 7.0.  The = only way to increase this would be to increate your block size, recompile, = and initdb.  If you are using 7.0 or above, this is not an issue, as t= he limit has been removed.

Cheers...


MikeA


>>   -----Original Message-----
>>   From: Rainer Mager [mailto:rmager@vgkk.com]
>>   Sent: 12 June 2000 09:26
>>   To: pgsql-admin@postgresql.org
>>   Subject: [ADMIN] query buffer max l= ength of 16384 exceeded
>>  
>>  
>>   Hi all,
>>  
>>      I would expect this to= be a FAQ but I can't find
>>   anything in the docs or on
>>   the net. I'm trying to restore a pg= _dumped database (via "psql <
>>   databasefile") and get this er= ror:
>>  
>>      query buffer max lengt= h of 16384 exceeded
>>  
>>   Is there anyway to adjust this buff= er (preferrably without
>>   rebuilding PG)?
>>   Or is there a better way to restore= a database?
>>  
>>  
>>   Thanks,
>>  
>>   --Rainer
>>  

------_=_NextPart_001_01BFD470.A7C990B6-- From rmager@vgkk.com Tue Jun 13 01:48:33 2000 Received: from smtp03.mail.gol.com (smtp03.mail.gol.com [203.216.5.13]) by hub.org (8.10.1/8.10.1) with ESMTP id e5D1mXT13664 for ; Mon, 12 Jun 2000 21:48:33 -0400 (EDT) Received: from wks02 (tc-2-204.ariake.gol.ne.jp [203.216.43.204]) by smtp03.mail.gol.com (Postfix) with SMTP id 4EF4D40B0 for ; Tue, 13 Jun 2000 10:48:16 +0900 (JST) From: "Rainer Mager" To: Subject: RE: query buffer max length of 16384 exceeded Date: Tue, 13 Jun 2000 10:54:52 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200006/78 Well, I fixed my problem. I'm sure everyone already knows this but if you use the -d flag to pg_dump (Dump data as proper insert strings) then it doesn't use the COPY command to insert data. Hence no HUGE strings to exceed the buffer. Using this flag helped. --Rainer