Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYIFs-0003L9-1v for pgsql-admin@arkaria.postgresql.org; Tue, 04 Jun 2019 22:50:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYIFq-0008L4-Ld for pgsql-admin@arkaria.postgresql.org; Tue, 04 Jun 2019 22:50:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYIFp-0008Go-8T for pgsql-admin@lists.postgresql.org; Tue, 04 Jun 2019 22:50:06 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([202.78.240.226]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYIFl-0004FX-3x for pgsql-admin@lists.postgresql.org; Tue, 04 Jun 2019 22:50:03 +0000 Received: from [IPv6:2404:130:0:1000:222:4dff:fe88:a586] (unknown [IPv6:2404:130:0:1000:222:4dff:fe88:a586]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id F37C280F51; Wed, 5 Jun 2019 10:49:54 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catalyst.net.nz; s=default; t=1559688595; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:openpgp:openpgp:autocrypt:autocrypt; bh=OBiBLDuOrAO9Mr05ApTBLMWiKiFkLorh+peHwn/D0Mg=; b=t2r7O+W5foSqR7FYBnyAcU5OG+jT22nT+uYN7/OAu1tTCQXNUVu+xs5UPXbvKoawE4IZ07 N9bfmNcQzxzGObmWeT5oaD4g17XrZluXJD2crq1HKzQQUmhxCPIErC9ZcOmupn8yhhf59k IX+KMl9u3R2WB2SzN3BjzNZWi2scRjkco6V87e4MqrWV6224w8nsM/ZTk0LRdbB3bPxJ4g c2nUqfUspPWbrERNhH1ChbtuzDLz/MhjlmuRjykEZqINrofcl76VjGSb5kloBFkR9m8K7G j8DshR4/PaY20yolsXtJCeZA81IBWCLUVoaDV4C5YrI3X2IAbQ2YjPNNPhY2Jg== Subject: Re: postgres source code installation vs rpm based installation To: Pavan Kumar , pgsql-admin@lists.postgresql.org References: From: Mark Kirkwood Openpgp: preference=signencrypt Autocrypt: addr=mark.kirkwood@catalyst.net.nz; prefer-encrypt=mutual; keydata= mQGiBEifoLIRBADnzz1YAQxN+ajn3XhoyTWmp4hHTE05y1Ai0Hf4Et6HYohOw14eFzpzgEpd nbtxbs/FDprNC1d2dJ+J67qLzwKW6k95xekMWVtBQJ+tm7W9GPQ/wSSeOiya2tUO7TnjiS4H V0U0A2v6iiNDhUBpEiLQ3/09cXdJ3QuDQPP12gRFSwCgj+y/4HHUQeuQI6KYTZ6ynHYQrK8D /jYSakbQohDv/z9Z+PC4tgKugbkSumQC3q8G99z4idl1jEIAexJi89lAjrrVq1/WqdUqh0in ptsmh5Hk6eM24hqV36dYsvcYoDm3phAPIvEVYXwU9TPeqmxy46obUYpqymWl/EtZN9lIDqwU fS1SC9naB7Z1b03aAuvEXJwAdWg6BACp6SIWWvFc6ESdzkQ/5FtvHvq1grDa95y9Dzw9MBj+ YvWSxBYJo38oqidBGhUsvAAAl5Xw82bbYIQGuw0UgYjg9z8sUapZiNp+Le+gP6DDc7Jyw51b eVKTDRjc/GH6hLINlEyWlW3jwUVEKLwZNpOcGTTgfwvPITpM8+1sqQ6egLQtTWFyayBLaXJr d29vZCA8bWFyay5raXJrd29vZEBjYXRhbHlzdC5uZXQubno+iGAEExECACAFAkifoLICGwMG CwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRCn/vj7UjxSJvn3AKCKsXwnda7/3zTYe01FRRnk GltvIQCcD+5qpmZ4AzvfcsFqZ1rw/reu9YW5Ag0ESJ+guRAIANEGLgCM28cWn1rg28ZpY4bC xUY/DMoQMyG+3oJW5vDYOi9BYdIsH+a3mRk/ElG4r9vlWrSQQwAuDayVH30RuBJU2xHKOx2d u22W54SU7Y+fOZS8IUfffgqnKGPkPucM5eLHIiQ33kiNUl7Ho0kDli3rfe5Jyz2tZGP3FB5s 0u0v23wu7RltzgsFkxhI5kiPBBI0CVdr4w3s1gJM7id7TL8je8IOw/R+VadMn8Us9V9Hr4Yc iXhEwtkT3A9RA6ZZee3E3N09ZKjh3dxID2PMRxKPEUAuOELmVzpA77z0Sz6sZXtJgNLLvIjB iYvpZscbAGf5fjB8eBn1Kmmzow+tFy8AAwUH/ArPiMQquxtsmFUqMef5k80j66+/mDEbt9xV rz1MvXZ5NH4KVMUmgXlRN4yIOVyh/mMjiJ+DEBK/Tp4mcgQqhst2D0p/lvd3/QxtVGWts73y IAhRhWvq4jCC6Oy7IDrjRbnO0GEpumiMiT2kko1MCpXwBuJlKUxjlmlwEsKv2fbIsuGlES1u /QrLAk1ePfh5VDyKM5z+WT3GMDolrabehI8q5f0ZWPmN63Me6IM6Oqf5kYuRH0gwAauO3/bF 6NjNsQvM6lm0MbcOzSBNdH/Aru6QPbhscArMUx2opn7gkYg8wCN+Bd1Se1dQTtAcDrEBmR5i aoCbEZYkCqVAJF/C5j6ISQQYEQIACQUCSJ+guQIbDAAKCRCn/vj7UjxSJn5/AJ4hzPttJ18v gOljiFMBvwIk2HIMTQCfYMk+dS/ixjmPGZ55dk9MNuaLSYQ= Message-ID: <7463a2d9-6346-d9fd-8b4c-e47a92902c0a@catalyst.net.nz> Date: Wed, 5 Jun 2019 10:50:18 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-GB ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=catalyst.net.nz; s=default; t=1559688595; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:openpgp:openpgp:autocrypt:autocrypt; bh=OBiBLDuOrAO9Mr05ApTBLMWiKiFkLorh+peHwn/D0Mg=; b=L9yUcD1NiVWSrOP9TOMGNmRi+8qGqlAzs7M3nMC77Jody8oDVQslW3757DjEZPmN6qXbps A17lwLMSAu0zx7us53Td/cM0dfOmhfgGLynXcWiBXH3UA4FnmbSIppy5Z95jwmAcNjRsTu GnAURfncQzcSYCwV69+uHryb0p6XerYhhcXRc5oGpQ9OULJCMjGgZdsyxLs3Jw2Ts+6pDz TLaezqXuTkX6aKO0khQlnKlgJRPKvvqUjd3tZVyrOWdZbVhDnuUBVsYgeLXUfliICyAbG3 0br1fDw0DvNE4Sb7Pc6KMUv3jIRsvzYvyWKUb227EK06si8RhGOr6wjEQus6YQ== ARC-Seal: i=1; s=default; d=catalyst.net.nz; t=1559688595; a=rsa-sha256; cv=none; b=aA6CaDHXBUGf4EY+9B/5QyyFoZIs+PA7GnTZrOJtNMG8ZmeiNI7IF2xmJK8k0X1TJ7bDJk QOMcW65j2VoJhSjI9gXt6aC60GACj8HH5kTbk7rX2DCx/nxjEfhexODDzusjPlt9ddI+qx 9mEbu2sdRLoKautRzOl3qBVc3tK99zpXMOWOMbiwRx6wBPMlMOA4FhfHFH85rN0MghtU24 glXYRymTGNoM6hEKKeTMctBCDEErurHejgs76FaklEdwYGprW7bD8PfJ5uL8fIYOCemW6f GAoMTXRUt/sOTIM9crYN0IzA95MIukoV2MqwyK2iMTdDx5ddF6jL4V/iESuMQw== ARC-Authentication-Results: i=1; cat-porwal-prod-mail1.catalyst.net.nz; auth=pass smtp.auth=mark.kirkwood@catalyst.net.nz smtp.mailfrom=mark.kirkwood@catalyst.net.nz List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/06/19 8:00 AM, Pavan Kumar wrote: > Hello Experts, > > I have couple of questions on postgres installation. > > 1. which way of installation is better ? source code or rpm based ? > 2. for instance , If we need to install same version postgres on > multiple times on same server. how do we need to handle=C2=A0this with = rpm ? > 3. If I go with source code installation, in case we need to upgrade > OS(6 to 7) , do we need to recompile existing postgres binaries ? > > kindly share your experience. > > Hi, Some thoughts on these points: Re 1: Source based is better if you want to customize compile time variables (block size etc). However the (substantial) down side of that approach is you need to be rebuilding for all the point releases (i.e bug and security updates) as they come out- it is easy to forget or not bother and end up way behind. This is where the rpm approach shines as it does this for you. Re 2: not sure (I use debs not rpms), however typically the install path for binaries is fixed (i.e so you cannot install the same version in multiple places). Also I'm not clear why you would want to do this. Re 3: you might need to recompile in some cases after an upgrade (dynamic linking to libraries outside the Postgres src that can get their versions changed to the point where Postgres libs won't load anymore). However testing should highlight this. regards Mark