Thread
-
General Bug Report: Buffer query in MainLoop of psql is never flushed
Unprivileged user <nobody> — 1999-01-18T14:03:53Z
============================================================================ POSTGRESQL BUG REPORT TEMPLATE ============================================================================ Your name : Leif Jakob Your email address : jakob@weite-welt.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; --------------------------------------------------------------------------