See what options a Postgresql binary was compiled with

Started by Keith Christianabout 5 years ago3 messagesgeneral
Jump to latest
#1Keith Christian
keith1christian@gmail.com

Planning to convert a Postgres 10 instance to systemd init. I understand it
had to be compiled with systemd support to work that way.

Thanks!

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Keith Christian (#1)
Re: See what options a Postgresql binary was compiled with

Keith Christian <keith1christian@gmail.com> writes:

Planning to convert a Postgres 10 instance to systemd init. I understand it
had to be compiled with systemd support to work that way.

Try "pg_config --configure" and see if --with-systemd is mentioned.

regards, tom lane

#3Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Keith Christian (#1)
Re: See what options a Postgresql binary was compiled with

On Wed, 2021-01-20 at 17:27 -0700, Keith Christian wrote:

Planning to convert a Postgres 10 instance to systemd init.
I understand it had to be compiled with systemd support to work that way.

That is only necessary if you want to start the service with "Type=notify".

If you start it using "Type=oneshot" and "pg_ctl" or "Type=exec" and "postgres",
you don't need the systemd callback.

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