General Bug Report: Buffer query in MainLoop of psql is never flushed

From: Unprivileged user <nobody>
To: pgsql-bugs(at)postgresql(dot)org
Subject: General Bug Report: Buffer query in MainLoop of psql is never flushed
Date: 1999-01-18 14:03:53
Message-ID: 199901181403.JAA08685@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : Leif Jakob
Your email address : jakob(at)weite-welt(dot)com

Category : runtime: front-end
Severity : serious

Summary: Buffer query in MainLoop of psql is never flushed

System Configuration
--------------------
Operating System : Linux ELF

PostgreSQL version : 6.4.2

Compiler used : gcc

Hardware:
---------
P 120
but doesn't matter

Versions of other tools:
------------------------

--------------------------------------------------------------------------

Problem Description:
--------------------
The buffer query passed as a parameter to MainLoop in the
program psql is never flushed after a query, so the buffer
will grow until it reaches the maximum size and the tool
will refuse any query.

--------------------------------------------------------------------------

Test Case:
----------
Pipe a SQL-Script with more than 20k to psql.

--------------------------------------------------------------------------

Solution:
---------
After a very quick look i patched all places where
querySend is set true with the line:
query[0]=0;

--------------------------------------------------------------------------

Browse pgsql-bugs by date

  From Date Subject
Next Message Unprivileged user 1999-01-22 13:41:47 General Bug Report: Problem Deleting VIEWS
Previous Message Unprivileged user 1999-01-14 19:10:27 General Bug Report: Memory leak in backend on failed inserts