public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Ron Johnson <[email protected]>
Cc: pgsql-admin <[email protected]>
Subject: Re: Why might it take so long to start up a cleanly-stopped instance?
Date: Sat, 14 Dec 2024 16:42:52 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CANzqJaAXfBAirx+Pf3xQXfgaGVyuyJ06BbOAUBRW3jJe+onu4w@mail.gmail.com>
References: <CANzqJaAXfBAirx+Pf3xQXfgaGVyuyJ06BbOAUBRW3jJe+onu4w@mail.gmail.com>

Ron Johnson <[email protected]> writes:
> $ pg_ctl stop -wt9999 && pg_ctl start -wt9999
> waiting for server to shut down........... done
> server stopped
> waiting for server to
> start.................................................................................................................................................................................................................................2024-12-14
> 13:21:10.820 EST            24567            00000   LOG:  00000:
> redirecting log output to logging collector process
> 2024-12-14 13:21:10.820 EST            24567            00000   HINT:
>  Future log output will appear in directory "/var/log/postgresql".
> 2024-12-14 13:21:10.820 EST            24567            00000   LOCATION:
>  SysLogger_Start, syslogger.c:674
> . done
> server started

That's quite odd: the delay evidently happens before SysloggerStart,
which is done mighty early.  Perhaps strace'ing the start would yield
insight.

			regards, tom lane






view thread (2+ messages)

reply

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Why might it take so long to start up a cleanly-stopped instance?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox