Re: Installing PostgreSQL as non-root by Extracting the binaries from RPMs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thiagarajan Lakshminarayanan <thiagu1997(at)gmail(dot)com>
Cc: Benjamin Scherrey <scherrey(at)proteus-tech(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Installing PostgreSQL as non-root by Extracting the binaries from RPMs
Date: 2018-05-21 15:50:02
Message-ID: 29123.1526917802@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thiagarajan Lakshminarayanan <thiagu1997(at)gmail(dot)com> writes:
> Thanks Benjamin. Actually, we don't use Docker in our environment. We just
> use a standard RHEL OS install. Will there be any issues if I install
> PostgreSQL by extracting the RPM binaries?

What exactly is your purpose here? Is it just that you want to run a
separate data directory somewhere? You don't need a separate set of
binaries for that, just point PGDATA to where you want it and run the
server as the owner of that data directory.

(Depending on the details, you might need to teach SELinux to allow
this usage. I don't remember exactly what cues SELinux to treat a
particular process as being subject to its restrictions, but use of
the system binaries is at least part of it.)

If you want to be able to build and run a server without any root
privileges at all, you might be best off just building from source.
Maybe I'm too used to doing that, but I'm not very clear on what
you gain by extracting the result of somebody else's build -- which,
almost by definition, is not exactly what you want.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Aguayo Garcia-Rada 2018-05-21 16:13:12 Re: Installing PostgreSQL as non-root by Extracting the binaries from RPMs
Previous Message Thiagarajan Lakshminarayanan 2018-05-21 15:37:59 Re: Installing PostgreSQL as non-root by Extracting the binaries from RPMs