Re: postgresql "init script" for postgres 9.2.15

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Langlois <steve(dot)langlois(at)tavve(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgresql "init script" for postgres 9.2.15
Date: 2016-07-13 22:06:34
Message-ID: 4254.1468447594@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steve Langlois <steve(dot)langlois(at)tavve(dot)com> writes:
> Thank you but in our appliance, we are not running postgres as a service, we are running it programatically with this script, call postmaster to start it for instance instead of using the service framework. Is there an equivalent in 9.x or does it now have to run as a service. I was able to modify the script to get 9.2 to run but I was hoping this script had been updated for 9.x. The current script uses --auth='ident sameuser' when calling initdb for instance which is not supported in 9.2.

You could try looking in the Fedora 15 RPMs --- that was the last
non-systemd Fedora release, I believe. It looks like Fedora was on
Postgres 9.0.x at that point, so you might still need to do a bit more
fiddling to get it to work with PG 9.2; but it'd be closer than scripts
intended for 8.2, for sure.

Keep in mind that scripts like this are distro-maintained, not maintained
by the Postgres core project; and they tend to get a LOT more churn caused
by distro-specific issues than churn caused by Postgres changes. It's
not really clear to me that you want to do anything except make whatever
changes you have to in the scripts you already have. You may spend more
time dealing with useless-to-you changes than you save by not doing your
own research on what changed in Postgres.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Keller 2016-07-13 22:16:21 FTS with more than one language in body and with unknown query language?
Previous Message David G. Johnston 2016-07-13 21:48:46 Re: postgresql "init script" for postgres 9.2.15