Re: Cannot connect to postgresql-11 from another machine after boot - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: Cannot connect to postgresql-11 from another machine after boot
Date
Msg-id 20200222223225.GD12464@hjp.at
Whole thread Raw
In response to Re: Cannot connect to postgresql-11 from another machine after boot  (Jason Swails <jason.swails@gmail.com>)
List pgsql-general
On 2020-02-17 10:17:41 -0500, Jason Swails wrote:
> I then added "network.target", "networking.service", and
> "network-online.target" to the After line of the postgresql.service systemd
> file, but it still didn't fix the problem.

After=network-online.target should be correct.

However, see
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ for an
explanation why "the network is online" is not as simple as it looks and
how to ensure that.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: Klaus Darilion
Date:
Subject: Re: Logical replication lag in seconds
Next
From: Tom Lane
Date:
Subject: Re: Can I trigger an action from a coalesce ?