Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [206.210.65.6]) by hub.org (8.9.1/8.9.1) with ESMTP id KAA01570 for ; Mon, 11 Jan 1999 10:48:15 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id KAA13819; Mon, 11 Jan 1999 10:28:14 -0500 (EST) To: =?iso-8859-1?Q?Jos=E9?= =?iso-8859-1?Q?_L=F3pez?= Requena cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Problems accessing postmaster In-reply-to: Your message of Mon, 11 Jan 1999 09:43:26 +0100 <3.0.1.32.19990111094326.006cbdf8@correo.cc-ab.uclm.es> Date: Mon, 11 Jan 1999 10:28:14 -0500 Message-ID: <13817.916068494@sss.pgh.pa.us> From: Tom Lane =?iso-8859-1?Q?Jos=E9?= =?iso-8859-1?Q?_L=F3pez?= Requena writes: > Hi! I've a problem when try to connect to the postmaster v 6.4.2 via psql > or via c program. > If I type psql template1 or the program executes the function call > PGsetdb(pghost,pgport,pgoptions,pgtty,"template1"),it returns the following > error message: > Connection to database 'template1' failed. > pqReadData()--backend closed the channel unexpectly this probably means the > backend terminated before or while processing the request. Hmm. That sounds pretty broken. Does anything get logged in the postmaster's log file (wherever you redirected its stdout/stderr to)? Does a core file get created? (Look for a core file both in the postgres data directory and in its subdirectories.) If there is a core file, extracting a backtrace from it with gdb or your favorite debugger would help us figure out what's wrong. My first guess is some sort of configure/build foulup. What kind of system are you running on? Which template did 'configure' pick? regards, tom lane