Re: query buffer exceed - Solution for common error

From: Silvio Emanuel Barbosa de Macedo <smacedo(at)inescn(dot)pt>
To: Chairudin Sentosa <chairudin(at)prima(dot)net(dot)id>
Cc: pgsql general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: query buffer exceed - Solution for common error
Date: 1999-03-05 10:01:08
Message-ID: Pine.GSO.3.96.990305094655.3768B-100000@newton.inescn.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


>Have you got any answer for the 'query buffer 20K exceeded' problem?
>I am experiencing the same problem.

Hi there!

I've even get to debug psql, but in that process I found my problem. One
of the strings that I was inserting into the database in a INSERT
statement, had one erroneous extra tick ['].

The result was that psql stopped to read the string at the first closing
tick, and then all the text it read was included as a second string
starting on the second closing tick. (as it happens many times when
programming and you don't close brackets, or when you forget to close "s).

After many queries (20K!) being read into that string, it core dumps.
This error was hard to find because psql only dumps core 20K bytes after
the real error.

So, my advice is that you have the output of psql written into a file
( with psql -e -f foo.sql >& file.out ) and look for a
missing, or extra tick, somewhere before the actual error message.

Hope this helps!

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
`````````````````````````````````````````````
Silvio Emanuel Nunes Barbosa de Macedo
mailto:smacedo(at)inescn(dot)pt

INESC - Porto - Grupo CAV
Pc da Republica, 93 R/C Tel:351 2 209 42 21
4000 PORTO PORTUGAL Fax:351 2 208 41 72

Browse pgsql-general by date

  From Date Subject
Next Message Adriaan Joubert 1999-03-05 11:53:24 Re: [GENERAL] I can't drop view?!
Previous Message Colin Price (EML) 1999-03-05 09:53:25 RE: [GENERAL] I can't drop view?!