pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Doug Whitfield <douglasawh@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: CentOS 7 yum package systemd bug?
Date: Wed, 04 Nov 2020 09:45:04 +0100
Message-ID: <dcc58cda0de9a17d59e2068dcf03ae2d60ae9689.camel@cybertec.at> (raw)
In-Reply-To: <A7838B13-5899-4724-878A-52E1A75ACD1E@gmail.com>
References: <A7838B13-5899-4724-878A-52E1A75ACD1E@gmail.com>

On Tue, 2020-11-03 at 09:42 -0600, Doug Whitfield wrote:
> Unclear to me if this is a systemd bug or a Postgresql 12 bug, so I figured I would get some thoughts here before reporting in detail.
> 
> It is pretty simple to reproduce. If you start your standby server with incorrect username or password
>  using ’systemctl start postgresql-12’ then systemctl just “hangs”. The replication issues get logged,
>  and it isn’t hard to fix, but it doesn’t seem like the appropriate outcome. If you make a syntax error,
>  the systemctl knows that you failed. Of course, this is better than having a normal exit status and
>  moving on with life only to find out your replication isn’t working, but it doesn’t seem right.
> 
> To be clear, I already fixed the issue. I am just wondering if people think this is a systemd bug
>  or a PostgresQL bug or it is just a garbage in, garbage out sort of situation not worth filing anywhere.

That must be the "Type=notify" from the service file.

PostgreSQL notifies systemd as soon as it has started up, which didn't happen in your case.

The idea is that later services that depend on PostgreSQL can rely on it being available.
I think that is a good thing to have.
I am no systemd expert, but as far as I know services are started in parallel, so it
shouldn't block your boot process for other services that don't depend on PostgreSQL.

The best place to discuss this would be the "pgsql-pkg-yum" list.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <dcc58cda0de9a17d59e2068dcf03ae2d60ae9689.camel@cybertec.at>
Permalink:  ../dcc58cda0de9a17d59e2068dcf03ae2d60ae9689.camel@cybertec.at/
Also on:    postgresql.org/message-id/dcc58cda0de9a17d59e2068dcf03ae2d60ae9689.camel@cybertec.at

 · 

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 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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, douglasawh@gmail.com
  Subject: Re: CentOS 7 yum package systemd bug?
  In-Reply-To: <dcc58cda0de9a17d59e2068dcf03ae2d60ae9689.camel@cybertec.at>
  References: <A7838B13-5899-4724-878A-52E1A75ACD1E@gmail.com> <dcc58cda0de9a17d59e2068dcf03ae2d60ae9689.camel@cybertec.at>

* 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