gnareshdba(at)gmail(dot)com writes:
> Operating system: RHEL 7.2
> postgresql (9.4.5) instance restarts with below error during backup times
> 2017-03-19 19:00:21 EDT PANIC: semop(id=152698887) failed: Invalid argument
You need to prevent systemd from deleting Postgres' semaphores.
See the discussion of RemoveIPC here:
https://wiki.postgresql.org/wiki/Systemd
> on RHEL 7.2, and UID set to (id -u postgres) 2011
That's not the UID typically used on RHEL for Postgres, which is probably
why systemd doesn't know to exempt it from RemoveIPC.
regards, tom lane