pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thiagarajan Lakshminarayanan <thiagu1997@gmail.com>
Cc: Benjamin Scherrey <scherrey@proteus-tech.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Installing PostgreSQL as non-root by Extracting the binaries from RPMs
Date: Mon, 21 May 2018 11:50:02 -0400
Message-ID: <29123.1526917802@sss.pgh.pa.us> (raw)
In-Reply-To: <CADnrz0r-h4NWbj8mw27SBgM_-FYCSAPc_ueAa5eyKDZ5-3zmLA@mail.gmail.com>
References: <CADnrz0oEf51A6Y10PtN+rjBBVJrxa8Bo=K2THRtjR+i46Vh+qw@mail.gmail.com>
	<CACo3ShiXFguhM5O+XvJ9_CbhjCPnN6K4gmMOVopp1QLwxBgdfw@mail.gmail.com>
	<CADnrz0r-h4NWbj8mw27SBgM_-FYCSAPc_ueAa5eyKDZ5-3zmLA@mail.gmail.com>

Thiagarajan Lakshminarayanan <thiagu1997@gmail.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




view thread (5+ messages)  latest in thread

Message-ID: <29123.1526917802@sss.pgh.pa.us>
Permalink:  ../29123.1526917802@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29123.1526917802@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thiagu1997@gmail.com, scherrey@proteus-tech.com
  Subject: Re: Installing PostgreSQL as non-root by Extracting the binaries from RPMs
  In-Reply-To: <29123.1526917802@sss.pgh.pa.us>
  References: <CADnrz0oEf51A6Y10PtN+rjBBVJrxa8Bo=K2THRtjR+i46Vh+qw@mail.gmail.com> <CACo3ShiXFguhM5O+XvJ9_CbhjCPnN6K4gmMOVopp1QLwxBgdfw@mail.gmail.com> <CADnrz0r-h4NWbj8mw27SBgM_-FYCSAPc_ueAa5eyKDZ5-3zmLA@mail.gmail.com> <29123.1526917802@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox