Postgres is going to sleep or something...
doug at artsman.com
Wed Feb 2 20:29:36 UTC 2022
I’ve never seen Postgres shut down the server by itself. All of our hundreds of installs run constantly, 24 hrs per day, on every server we have ever installed it on, mac, windows, linux, freenas. Postgres only stops when you make it stop, never by itself unless it abends
which brings us back to the postgres logs. /Library/Postgres/14/data/logs
go and look at those.
if there are multiple log files per day, it likely means postgres restarted (for some reason)
then edit the log file and look at the end of it…. and see what it says.
Arts Management Systems Ltd.
mailto:doug at artsman.com
Phone (403) 650-1978
> On February 2, 2022, at 12:14 PM, Das Goravani <goravanis at gmail.com> wrote:
> Doug, I appreciate your long post about sleep in general, but...
> It just happened so I took the opportunity to check all things.
> I was connected to postgres on my MBP which is remote to the server. I had a SESSION showing under the SQL Browser in Omnis.
> I then expanded the SQL Browser to see Tables within that session. There were none. There should be 1 there.
> I figured my connection was dropped, or that "postgres went to sleep"
> I tried to log on and got the watch on the logon command line in Omnis
> I then switched to the server, tried to log Omnis in there. No go, got the watch. That now being a localhost connection attempt.
> I then switched to pgAdmin on the server. I launched it. When in it I click on Servers and enter my password, I get the message that the connection attempt failed
> If I then start postgres using Terminal
> pgAdmin then connects just fine
> And I can log Omnis in on both computers
> And my one table shows in the SQL Browser in Omnis
> It is really as if postgres is shutting down on the server all by itself
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en