See what options a Postgresql binary was compiled with

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

See what options a Postgresql binary was compiled with

Keith Christian
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!


Reply | Threaded
Open this post in threaded view
|

Re: See what options a Postgresql binary was compiled with

Tom Lane-2
Keith Christian <[hidden email]> 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


Reply | Threaded
Open this post in threaded view
|

Re: See what options a Postgresql binary was compiled with

Laurenz Albe
In reply to this post by Keith Christian
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