Re: BUG #3858: psql hangs if called as postgres is coming online

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Faisal N(dot) Jawdat" <faisal(at)faisal(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3858: psql hangs if called as postgres is coming online
Date: 2008-01-13 03:11:19
Message-ID: 26444.1200193879@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Faisal N. Jawdat" <faisal(at)faisal(dot)com> writes:
> 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.

FWIW, I just spent some time trying to duplicate this on OSX 10.4.11,
without success. I ran the postmaster under gdb and tried psql from
another window at interesting points during the startup sequence. psql
either fails instantly if started before the postmaster has executed
listen(), or waits till the postmaster responds with "FATAL: the
database system is starting up" if started during the subsequent startup
processing, or comes up fine if started later.

Perhaps you are looking at a kernel bug in 10.5?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Faisal N. Jawdat 2008-01-13 03:46:22 Re: BUG #3858: psql hangs if called as postgres is coming online
Previous Message Tom Lane 2008-01-12 23:35:16 Re: BUG #3860: xpath crashes backend when is querying xmlagg result