Received: from moon.mteege.de (ppps-nb01.MVnet.de [194.25.108.145]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f259xAx65232 for ; Mon, 5 Mar 2001 04:59:11 -0500 (EST) (envelope-from matthias@mteege.de) Received: (from matthias@localhost) by moon.mteege.de (8.8.8/8.8.8) id KAA05303; Mon, 5 Mar 2001 10:26:24 +0100 (MET) (envelope-from matthias@mteege.de) X-Authentication-Warning: moon.mteege.de: matthias set sender to matthias@mteege.de using -f To: Tom Lane Cc: pgsql-interfaces@postgresql.org Subject: Re: pg_connect dumps core References: <200103041334.OAA01945@moon.mteege.de> <9431.983723500@sss.pgh.pa.us> Content-Type: text/plain; charset=iso-8859-1 From: Matthias Teege Date: 05 Mar 2001 10:26:23 +0100 In-Reply-To: Tom Lane's message of "Sun, 04 Mar 2001 11:31:40 -0500" Message-ID: <87hf18r2gw.fsf@moon.mteege.de> Lines: 40 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.5 MIME-Version: 1.0 X-Archive-Number: 200103/42 X-Sequence-Number: 1203 Tom Lane writes: > Strange. Evidently it's getting as far as opening the connection > (pq_recvbuf is used in the backend, not the postmaster), but then > crashing after that. I can't see any reason why it would work for > pgaccess but not for you. (I notice that pgaccess uses the conninfo I have an idea an run my test script with wish8.3 and it works. No core dump. Thats the different between pgaccess and my script. With tclsh8.3 it dumps core. Looks like a "bug" in tclsh8.3? Here my test script. load libpgtcl.so proc getDBs { {host "localhost"} {port "5432"} } { # datnames is the list to be result set conn [pg_connect template1 -host $host -port $port] set res [pg_exec $conn "SELECT datname FROM pg_database ORDER BY datname"] set ntups [pg_result $res -numTuples] return for {set i 0} {$i < $ntups} {incr i} { lappend datnames [pg_result $res -getTuple $i] } pg_result $res -clear pg_disconnect $conn return $datnames } getDBs Strange because I want to write I server script with tclsh and not with wish. ;-( Thanks again Matthias -- Matthias Teege -- matthias@mteege.de -- http://emugs.de make world not war PGP-Key auf Anfrage