Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWIgU-0001TX-17 for pgsql-general@arkaria.postgresql.org; Tue, 13 Apr 2021 13:02:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lWIgR-0007gi-8B for pgsql-general@arkaria.postgresql.org; Tue, 13 Apr 2021 13:02:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWIgQ-0007gb-Tt for pgsql-general@lists.postgresql.org; Tue, 13 Apr 2021 13:02:23 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lWIgG-0004wI-DU for pgsql-general@postgresql.org; Tue, 13 Apr 2021 13:02:21 +0000 Received: by mail-ed1-x52b.google.com with SMTP id w23so19290846edx.7 for ; Tue, 13 Apr 2021 06:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hpD9wn8WPpfipiq2Db/QICuNM6tv2aVbQEE7qhWi5ZM=; b=LjouDxA+SwpdZd192XM+UEmBSZhlGLtYUSLf4pnr9aEFtgIVboZq0qQkgTOstEUhuQ Ib92ZG5UW8KR2VQeKgU47D1gkUQ6pk3RFqqzd5KvHmLX87ib3BMyKUryoNBy+lKYWuR/ PHA/dMGmQCHXYdWRZ9VrFr95WE9Td9ALynpzXy8jfDVA6367gsp0tX2NRSd0HZceBQg4 wYaHspS7WtLXDelWWWV3gSzFcVLfMu5tcTiyd35uHZuKJVy/JS9NiMeOlupJf5Wd1KxR oCLv3IsKU0Xr9vttlFstfiYAvbVIeISOAZzb6gWAfK/v/uKq4YnTskn5nUdMKMf2LM6m oqDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hpD9wn8WPpfipiq2Db/QICuNM6tv2aVbQEE7qhWi5ZM=; b=n6mwV1FsWnzoKmNj7KJXmJRRgS6y0VuDQ9Pli41cUMLOcWU7uQKdwSpjnxzhpwePwO rcluFFdhmF73pNUwXmH5XgWZwaR8H3yP4nfJQmjV2qzkDJQOVPuS7wlpOBhsmAfSjt68 ceAnkroqjrbQYsMgbcrq1T2xpnhn1Is2NdzSQlMvvXlXJ/uyFV9T+bsiJh5ogJLQf/xg 7vKEUlT6hQMUAuKD3MCwFoXd/102qbMv+456A0fSjFrEK8YmvYEGoLcpi2oEeoQnnpY9 lgxGgavjY6ikGiUVh6Ay2D3cgy3X0ZXtIgacfoXUMlXyjcIaFlnqw2Qgexwx8CqP5IRR pDGA== X-Gm-Message-State: AOAM5313EJLe0ATX7RU54W/FxAH2zyAQawYNG+TPysakXLga89WBOG2G R8cCtjNr3kQJTVrNYVXikH8= X-Google-Smtp-Source: ABdhPJz4GsOEw8+MduVsI3LIfBqSZCJFj2qoNVgdB/zNnMGd9H2rKcHYm1y5C44ocMzSFNCGABPIeA== X-Received: by 2002:aa7:c694:: with SMTP id n20mr34035492edq.51.1618318931011; Tue, 13 Apr 2021 06:02:11 -0700 (PDT) Received: from [192.168.1.132] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id s11sm9298187edt.27.2021.04.13.06.02.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Apr 2021 06:02:10 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: Advice on binary installation From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Tue, 13 Apr 2021 15:02:07 +0200 Cc: "pgsql-general@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <5EC6D598-9EBD-451B-B9E3-66CF7D866F8E@gmail.com> References: To: "Zwettler Markus (OIZ)" X-Mailer: Apple Mail (2.3654.60.0.2.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Markus, On 13. Apr, 2021, at 14:43, Zwettler Markus (OIZ) = wrote: > We assume to get more than 100 Postgres clusters in the future. > =20 > We will get a very heterogeneous binary installation basis if we = install needed extensions (e.g. ip4r) or software (e.g. patroni) on a = per project basis. > =20 > There could be even more incompatibility problems otherwise if we = install all global needed extensions or software with every project to = get a homogenous binary installation. > =20 > Software installation is done with yum using PGDG downstream channels. > =20 > Any recommendations? I don't know how you plan to do it, but I can only say how we do it: - Compile from source including all extensions needed (make = install-world). Create a binary only directory this way, i.e. compile source to /data/postgres/xx.x - Create a tar file of said directory. - Distribute that via Ansible untaring it on the destination servers. - Have a standard postgresql.conf ready which includes a shared_preload_libraries =3D 'pg_stat_statements' (or whatever you need) for use with initdb. This way, we make sure that all servers get the same new software = directory as needed in a separate directory including all necessary = extensions, which means we can then delete the old directory if it is = not longer needed (i.e. after all databases have been upgraded). Also, = this makes sure, everything is loaded properly. With individual and only some few cases, we then use "create extension", = but only extensions which we deliver with the tar via Ansible. If there = is doing to be a new extension (which we avaoid if we can), then we put = it into the tar Archive and nowhere else. So it's on all servers, but = only a few databases use it then. Hope this helps. Paul=