Lists: | pgsql-bugs |
---|
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 |
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;
--------------------------------------------------------------------------