Re: BUG #3858: psql hangs if called as postgres is coming online - Mailing list pgsql-bugs

From Faisal N. Jawdat
Subject Re: BUG #3858: psql hangs if called as postgres is coming online
Date
Msg-id 959311E0-FCB9-4B25-98BA-18B7610A23F6@faisal.com
Whole thread Raw
In response to Re: BUG #3858: psql hangs if called as postgres is coming online  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-bugs
(gdb) backtrace
#0  0x91542152 in poll$UNIX2003 ()
#1  0x0004867a in pqSocketCheck ()
#2  0x00048a41 in pqWaitTimed ()
#3  0x00042cbc in connectDBComplete ()
#4  0x00044b02 in PQsetdbLogin ()
#5  0x0000d30f in main ()


-faisal

On Jan 8, 2008, at 6:34 PM, Alvaro Herrera wrote:

> Faisal N. Jawdat wrote:
>
>> If I use psql on a local database while the daemon is coming
>> online, psql
>> hangs and most be killed.  Subsequent psql processes will connect
>> without
>> incident.
>
> This is strange.  When the postmaster is not ready to receive
> connections, psql is supposed to die with an error message stating so.
> It should not hang under no circumstances.
>
> Can you get a backtrace of the hung psql process?
>
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #3858: psql hangs if called as postgres is coming online
Next
From: Tom Lane
Date:
Subject: Re: BUG #3858: psql hangs if called as postgres is coming online