Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWqI4-00083k-Uy for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Feb 2016 19:00:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWqI4-0006H0-Hg for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Feb 2016 19:00:32 +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.84) (envelope-from ) id 1aWqI4-0006Go-6u for pgsql-pkg-debian@postgresql.org; Fri, 19 Feb 2016 19:00:32 +0000 Received: from molabun.bluegap.ch ([148.251.76.228] helo=klepario.bluegap.ch) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWqHu-0000o2-72 for pgsql-pkg-debian@postgresql.org; Fri, 19 Feb 2016 19:00:31 +0000 Received: from [10.80.16.206] (92.9.24.31.ftth.as8758.net [::ffff:31.24.9.92]) (AUTH: PLAIN markus@bluegap.ch, SSL: TLSv1/SSLv3,128bits,DHE-RSA-AES128-SHA) by klepario.bluegap.ch with ESMTPSA; Fri, 19 Feb 2016 19:57:09 +0100 id 00000000045CFAD0.56C76585.000015FA Message-ID: <56C7664C.7070001@bluegap.ch> Date: Fri, 19 Feb 2016 20:00:28 +0100 From: Markus Wanner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: laurent , pgsql-pkg-debian@postgresql.org Subject: Re: Dependency issue with postgresql-9.3-postgis-2.1 package, postgis does not work anymore References: <56C5ABBE.5060707@ljouanneau.com> In-Reply-To: <56C5ABBE.5060707@ljouanneau.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Hello Laurent, On 02/18/2016 12:32 PM, laurent wrote: > I'm using packages from apt.postgresql.org. My OS: ubuntu 14.04. Cool. > On a new machine, I installed postgresql-9.3-postgis-2.1, and postgis > doesn't work any more. Not cool, please use postgis-2.2, instead. > In fact, postgresql-9.3-postgis-scripts contains scripts for Postgis > *2.2* (/usr/share/postgresql/9.3/contrib/postgis-2.2) whereas scripts > for Postgis *2.1* are expected. Unfortunately, that's just your expectation. The current state of affairs is that PgAPT is only supporting one PostGIS version at a time. At the moment, that's 2.2. We already have plans to mitigate the issue, but we (well, I certainly) didn't get around to implement anything, yet. > older version of > postgresql-9.3-postgis-scripts contained scripts for Postgis *2.1*. So a > simple apt-get update && apt-get upgrade on machines having this old > version break postgis :-/ No, it doesn't. It's just that 'CREATE EXTENSION postgis' will give you postgis-2.2 after the upgrade. (If you installed 2.1 before and did an upgrade, you'll have both, postgresql-X.Y-postgis-2.1 and postgresql-X.Y-postgis-2.2 on your box. Postgis-2.1 extensions already created will continue to work until you remove postgresql-X.Y-postgis-2.1 from your system. So please do that only after upgrading all database instances to PostGIS 2.2. This is all well explained in the accompanying NEWS file.) > A solution for me is to upgrade to postgresql-9.3-postgis-2.2 but this > is tricky on production machines... Everything else actually means having to support older PostGIS versions for some amount of time. Not something that's been done for any other PostgreSQL extension of PgAPT, to my knowledge. We might even get there. And you're welcome to help. Kind Regards Markus Wanner -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian