psql command drop connection to backend

From: Theo Kramer <theo(at)flame(dot)flame(dot)co(dot)za>
To: pgsql-bugs(at)postgresql(dot)org
Subject: psql command drop connection to backend
Date: 1999-03-08 20:20:23
Message-ID: 199903082020.WAA20805@flame.flame.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


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

Your name : Theo Kramer
Your email address : theo(at)flame(dot)co(dot)za

Category : runtime: back-end
Severity : serious

Summary: psql commands

System Configuration
--------------------
Operating System : Redhat 5.0 Kernel 2.0.35

PostgreSQL version : 6.5

Compiler used : gcc 2.7.2.3-8

Hardware:
---------
Pentium PRO 200 MHz 96 MByte Ram

Versions of other tools:
------------------------
make-3.76.1-2

--------------------------------------------------------------------------
Problem Description:
--------------------
Commands in psql that return nothing cause backend to drop.

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

Test Case:
----------

The following illustrates the problem. Note that this is when no tables
have been created. Creating a table (no indexes) then \d works fine,
however, a command like \di then again causes the backend to drop.

[postgres(at)flame postgres]$ psql template1
Welcome to the POSTGRESQL interactive sql monitor:
Please read the file COPYRIGHT for copyright terms of POSTGRESQL

type \? for help on slash commands
type \q to quit
type \g or terminate with semicolon to execute query
You are currently connected to the database: template1

template1=> \d
pqReadData() -- backend closed the channel unexpectedly.
This probably means the backend terminated abnormally
before or while processing the request.
template1=> \q
[postgres(at)flame postgres]$

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

Solution:
---------

Function pqReadData() closes the connection when nread == 0. Is this correct
when there is no result set??

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

Regards
Theo

Browse pgsql-bugs by date

  From Date Subject
Next Message secret 1999-03-09 14:39:55
Previous Message Alvin van Raalte 1999-03-04 10:58:47