From: Tom Lane <tgl@sss.pgh.pa.us>
To: José López Requena <jrequena@cc-ab.uclm.es>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Problems accessing postmaster
Date: Mon, 11 Jan 1999 10:28:14 -0500
Message-ID: <13817.916068494@sss.pgh.pa.us> (raw)
In-Reply-To: <3.0.1.32.19990111094326.006cbdf8@correo.cc-ab.uclm.es>
=?iso-8859-1?Q?Jos=E9?= =?iso-8859-1?Q?_L=F3pez?= Requena <jrequena@cc-ab.uclm.es> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, jrequena@cc-ab.uclm.es
Subject: Re: [INTERFACES] Problems accessing postmaster
In-Reply-To: <13817.916068494@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox