Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKn4a-0004n7-RP for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 15:50:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fKn4Z-0003s9-2y for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 15:50:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKn4Y-0003rq-OT for pgsql-general@lists.postgresql.org; Mon, 21 May 2018 15:50:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKn4W-0006al-Fi for pgsql-general@lists.postgresql.org; Mon, 21 May 2018 15:50:05 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w4LFo2tZ029124; Mon, 21 May 2018 11:50:02 -0400 From: Tom Lane To: Thiagarajan Lakshminarayanan cc: Benjamin Scherrey , "pgsql-generallists.postgresql.org" Subject: Re: Installing PostgreSQL as non-root by Extracting the binaries from RPMs In-reply-to: References: Comments: In-reply-to Thiagarajan Lakshminarayanan message dated "Mon, 21 May 2018 10:37:59 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29122.1526917802.1@sss.pgh.pa.us> Date: Mon, 21 May 2018 11:50:02 -0400 Message-ID: <29123.1526917802@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thiagarajan Lakshminarayanan 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