pg_connect dumps core

From: Matthias Teege <matthias(at)mteege(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: pg_connect dumps core
Date: 2001-03-04 13:34:57
Message-ID: 200103041334.OAA01945@moon.mteege.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Moin,

I have problems with tclsh8.3, libpgtcl.so and pg_connect. What
is wrong with this simple code:

load libpgtcl.so
pg_connect db

This gives me an Segmentation Fault and dumps core under FreeBSD 4.2.
Are there known problems? Pgaccess works without any problems and
communicates perfect with the db. Ich I call pg_connect with a wrong
db name the function gives me an error message. I use PostgreSQL 7.0.3.

Here the tclsh session:

tclsh8.3
% load libpgtcl.so
% pg_connect m3
Connection to database failed
FATAL 1: Database "m3" does not exist in the system catalog.
% pg_connect m2
Segmentation fault (core dumped)

in postgresql errlog there are:

FATAL 1: Database "m3" does not exist in the system catalog.
pq_recvbuf: unexpected EOF on client connection

Many thanks
Matthias

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2001-03-04 16:31:40 Re: pg_connect dumps core
Previous Message Ken Kline 2001-03-04 09:23:29 pgaccess and tcl lib