Re: BUG #14356: "FATAL: the database system is starting up" error occurs to queries after PostgreSQL server start

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: xrensis(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14356: "FATAL: the database system is starting up" error occurs to queries after PostgreSQL server start
Date: 2016-10-05 14:45:51
Message-ID: 18654.1475678751@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

xrensis(at)gmail(dot)com writes:
> After the startup of the PostgreSQL server there is a state when it accepts
> incoming connections but generates "FATAL: the database system is starting
> up" as results for run queries.

This is not a bug, it's expected behavior.

> - Is there a known interface to check if the database is up and fully
> functional and ready for queries?

libpq's PQping() is a possibility.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message digoal 2016-10-05 16:21:40 BUG #14357: BUG : old_snapshot_threshold no effect
Previous Message Rader, David 2016-10-05 14:34:56 Re: Wrong results of function age(timestamp, timestamp)