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 1mqLBl-0008Fq-Jv for pgsql-general@arkaria.postgresql.org; Thu, 25 Nov 2021 20:17:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mqLBk-0003PK-3O for pgsql-general@arkaria.postgresql.org; Thu, 25 Nov 2021 20:17:48 +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 1mqLBj-0003Of-9o for pgsql-general@lists.postgresql.org; Thu, 25 Nov 2021 20:17:47 +0000 Received: from sonic307-9.consmr.mail.ne1.yahoo.com ([66.163.190.32]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mqLBc-0004TZ-1r for pgsql-general@lists.postgresql.org; Thu, 25 Nov 2021 20:17:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637871458; bh=x+UoKy7OG3i+2a1F3G9bxV23m4rUtznE1zy1u8mpuQg=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=FyZeqAgdIA5Q2ozoOwEt4JmFhYEoBv8lXnwe8hBdItErRwmhN0t2TrdmVj14PKoeneZna2RwVgml31l2B+fvfyMPRQXMbAzTKFQJ+q4XAte2N+zt+a0MTM3MK0Cm35W0WhPF5YrUXRNSXCxLufKzw7K5pxoGrlIgKu9yeOBkRWZls8vgcClEUxqxaBXY83NU5s9sN+9g8WbC8Gx54kwicSIGonX0/hzjZYf0wcf91CouHzOzuCgXV4s2pcPC4NgOHWsGvcC3OK3ncSLFquSuAaGtxm4UpAPYjWNLXlkYzSFsaUk/3/4Df8oDQssX16kBrxx1zpQlKBoAyW6bQx0eXQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637871458; bh=z3O8Wxw1O97eqfQfQHGW89nYrwV/TSg35O9axG/ckW8=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=CUEfOnnPfzl+GohtjMxI/CIX9zAdX8TTDyLlNz4G8naOLxVoazwqktrhOWgSl8stVv+APEcdkxrw48cDMe6DMt4tuiyo770E35lRi1UMESAvcxHzNKzLYFWd1k1IqJG9DtX10GxPOWhxpuQcBTc9QEQsmnOiOJ8VsOJV17EM5cPEABlEoxo/YJjfbaCMVR/LzdpoG67ece4QzYFP7eFmCcYfCJRqYB1TJvg/K5rN41hGz3m+Hv+gSYmilC6GuYyANXTxeO0nkkA9ugPHupZ24WBCLlwiDADvOGSFvtXl0vSiqiY1Z04rx9lk3xHKhTBmDgovod1d7d91s7D22nf51g== X-YMail-OSG: 3WaafHcVM1miWXe9nRaqsvJxCj08PVAnHfTW9FdPW8Dgodh73qJ38h_Eh7zpMh9 3LLdtt89gprDMdI8O5goS4XklAxywmIO0VnkEF1ofQoQRtVceHGjDN68ZiBFI5E0LTuGHlE38ddZ UFDD8uCSlsimWxYehI6cjGp.X_6_grD7uaiPg3tTQ8XYwygqZwWoqeR94nuRKFZV5HXTayT2BNX5 teNNQG3RS2cIo29oUX0j0nLkKwEVvLIGIjZcyVouqQqcw36K1CXJ9l1X9SgVeE4zH24DKCa7F0s. KuAdGCAuasKZZdEUSHzevjf5xOOrP2UKAObegFYhDjWDAvET.vPccf1lF1rWDmxTd9yJCRpzkCNG UlMQAhkXknXWyZcjVGvDE5Xdl7sjSR6iGhzMfCeZc07_EyEeTp_QfUNG8P_EW4u3jtIei_YUSUGi nwUNA2HfD4LkKpPA7z8h0sy3DuNlvDuRr0.ioU9zeT5Rwm4edIFcPAUTvtucqQigzyTPh_OZacwM jBI0dikG28PXXqJqwG1lfouXFsA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vq_FZLnslWUqkSsecKptfN Nr.FCYncebkIFUIH8IqhrxFzcO28OHU7U8gavuXojkCFLqPFKVavKAnVjPVVaGOR0nQAX1dzR4mc ldG36RVBfXrRq5WK.zz4qhUc2azegxG_eLYKCsfkmXC0s9Lebt6zEjNE1wyD9m2DIyOq8v2BaUQx QHVjRfeTxmCo5SOVQDmRme4..t0ft8U0Z0yyWjwVy1iDIZJLO9cPP8qeNuMMgTWqMNAOKuvF3MXS 43kFVWt8rEUr.C_9yEnRKaR.QivQEM8ShW_rpBjW8qmxyGM_jnklN_NsvYP4csaqKGmlMoThnmRC WcPhwnKp0lWSNHGkfWjzx7UgDtlrTOV0.HvKPcA2_wnXQrFd_bIDKPQNvLMgMZvTW80ufXG.TlC8 1emK2MltEtTTUoZTFyej5abFBg.hMN4Ydf4X.9sHJf9gIznWjVzoxqeXsCha4t2dnKoIPEcnk0LN HdmCwAno1WGuIs9Be5HxtlBWklsLyNpz8qwsa_LPnKuNwy859T6.gALGQ77IKznaLiY6T9kr1pfl W.S5AsWBhCijQfQw74ukBpZ5CPpCbooM3YyUlv1MuhPg_k.9Kl5Szcr1auGV5NAe3b4uxuzu_0uk nY9_o.vJK3WYxZA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 25 Nov 2021 20:17:38 +0000 Date: Thu, 25 Nov 2021 20:17:38 +0000 (UTC) From: Laurent FAILLIE To: "pgsql-general@lists.postgresql.org" Message-ID: <1884327497.2485548.1637871458632@mail.yahoo.com> In-Reply-To: References: Subject: Re: As a Linux distro, how to package multiple postgres major versions? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2485547_712504484.1637871458630" X-Mailer: WebService/1.1.19306 YMailNorrin Content-Length: 7969 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_2485547_712504484.1637871458630 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Which distribution are you speaking about ? I'm using Gentoo and postgresql is versioned : you install the versions you= 're looking for and switch form one to another using eselect laurent@torchwood ~ $ eselect postgresql list Available PostgreSQL Slots =C2=A0 11=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 11= .7 =C2=A0 12 *=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 12.2 (I know my system is outdated : i'm blocked by regressions in PHP so don't = updated this part for a while :) ) When you're upgrading your system, all supported version are rebuilt every = time a dependencies change : should be long if you're running a large numbe= r of version but you keep a stable system. Bye Laurent Le jeudi 25 novembre 2021, 17:41:35 UTC+1, Chocimier = a =C3=A9crit : =20 =20 Hi, How to provide Postgres for a binary rolling release Linux distribution? Currently 9.6, 12 and 13 major versions are packaged in Void by me in way described below. No one reported practical problems with that, but some concerns arised, mainly around shared libraries. Constraints: - Want to allow to migrate data to new version of server. - Other software (postfix, qt5...) is linked dynamically to libpq.so, and providing variants of those per postgres version is not desired. - There are extensions provided (currently only postgis, more planned). Current model is: - Provide different major versions as packages installable at same time, except from postgresql-libs (libpq, libpgtypes, libecpg.so). Build every major version _N_ with different prefix: usr/lib/psqlN. This allows usage of pg_upgrade to migrate data. - Have one user-installable shared libraries package, always from newest available version. - Provide extensions for every version as different package built against target postgres version (e.g. postgis-postgresql12). - Do not rebuild packages depending on libpq.so when library is updated. - Rebuild packages depending on libpq.so against newest version when they are updated. - Upgrade of postgresql-libs does not force people to install and use newer server, this is done independently whenever they decide to. Now, my questions: - Is loading new major version library from old postgresql server, client, extension valid? - Is loading new major version library from package build against *old* major version to talk to old server valid? - Is loading new major version library from package build against *new* major version to talk to old server valid? - If any of above is wrong, what could be better model? =20 ------=_Part_2485547_712504484.1637871458630 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello= ,

Which distribu= tion are you speaking about ?
<= br>
I'm using Gentoo and postgr= esql is versioned : you install the versions you're looking for and switch = form one to another using eselect

laurent@torchwood = ~ $ eselect postgresql list
Available PostgreSQL Slots
  11 = ;            &n= bsp;          11.7
  1= 2 *            =           12.2

(I know my system is outdated : i'm bl= ocked by regressions in PHP so don't updated this part for a while :) )

When you're upgrading your system, all supported version are= rebuilt every time a dependencies change : should be long if you're runnin= g a large number of version but you keep a stable system.

Bye

Laurent
=20
Le jeudi 25 novembre 2021, 17:41:35 UTC+1, Chocimier &l= t;chocimier@tlen.pl> a =C3=A9crit :


Hi,

How to provide Postgres for a binary rolling release Li= nux distribution?
Currently 9.6, 12 and 13 major = versions are packaged in Void by me in
way descri= bed below.
No one reported practical problems wit= h that, but some concerns arised,
mainly around s= hared libraries.

Const= raints:
- Want to allow to migrate data to new ve= rsion of server.
- Other software (postfix, qt5..= .) is linked dynamically to libpq.so,
and providi= ng variants of those per postgres version is not desired.
- There are extensions provided (currently only postgis, more plan= ned).

Current model is= :
- Provide different major versions as packages = installable at same
time, except from postgresql-= libs (libpq, libpgtypes, libecpg.so).
Build every= major version _N_ with different prefix: usr/lib/psqlN.
This allows usage of pg_upgrade to migrate data.
- Have one user-installable shared libraries package, always from<= br>
newest available version.
- Provide extensions for every version as different package built
against target postgres version (e.g. postgis-postgresq= l12).
- Do not rebuild packages depending on libp= q.so when library is updated.
- Rebuild packages = depending on libpq.so against newest version when
they are updated.
- Upgrade of postgresql-libs d= oes not force people to install and use
newer ser= ver, this is done independently whenever they decide to.

Now, my questions:
- Is loading new major version library from old postgresql server,
client, extension valid?
= - Is loading new major version library from package build against *old*
=
major version to talk to old server valid?
=
- Is loading new major version library from package build = against *new*
major version to talk to old server= valid?
- If any of above is wrong, what could be= better model?


------=_Part_2485547_712504484.1637871458630--