From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Izzet <Kevin.Izzet@nsc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: psql won't stayed connected
Date: Fri, 06 Aug 2004 12:40:25 -0400
Message-ID: <20230.1091810425@sss.pgh.pa.us> (raw)
In-Reply-To: <OFBE8626FE.9B4CA5B5-ON80256EE8.005526D9-80256EE8.00555582@nsc.com>
References: <OFBE8626FE.9B4CA5B5-ON80256EE8.005526D9-80256EE8.00555582@nsc.com>
"Kevin Izzet" <Kevin.Izzet@nsc.com> writes:
> Managed to get the debugger to work and here are the results, don't
> understand the results mind :-)
> #0 0x08155d55 in proc_exit ()
> #1 0x08161c17 in PostgresMain ()
> #2 0x0813eee0 in BackendFork ()
> #3 0x0813e8d6 in BackendStartup ()
Hmph. Well, AFAICS the only way for PostgresMain to call proc_exit()
directly is if it's seen EOF from the client (ie, connection closure).
So what you've really got is either a broken copy of psql on the Solaris
machine, or some kind of network issue that's causing the connection to
be closed almost immediately after establishment. The latter seems a
bit odd, since at the very least the connection-request packet must have
got through, but ...
If you have strace or ktrace or similar on the Solaris machine, tracing
psql's kernel calls might be revealing. What you want to watch for is
whether psql is exiting with the connection still open, or whether it
receives an EOF indication and then quits.
BTW, what authorization mode are you trying to use for this connection?
You might experiment with some different ones to see if the behavior
changes. Also, what about turning SSL on or off?
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, Kevin.Izzet@nsc.com
Subject: Re: psql won't stayed connected
In-Reply-To: <20230.1091810425@sss.pgh.pa.us>
References: <OFBE8626FE.9B4CA5B5-ON80256EE8.005526D9-80256EE8.00555582@nsc.com> <20230.1091810425@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