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 1iUXKy-0008Fy-P6 for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 12 Nov 2019 14:40: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 1iUXKx-0004yq-Hv for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 12 Nov 2019 14:40:07 +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 1iUXKx-0004yj-7s for pgsql-pkg-debian@lists.postgresql.org; Tue, 12 Nov 2019 14:40:07 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iUXKr-0005KO-EN for pgsql-pkg-debian@lists.postgresql.org; Tue, 12 Nov 2019 14:40:06 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 47C9Pq2BGvz3F13; Tue, 12 Nov 2019 15:39:59 +0100 (CET) Date: Tue, 12 Nov 2019 15:39:58 +0100 From: Christoph Berg To: Michael =?iso-8859-1?Q?B=F6hm?= Cc: pgsql-pkg-debian@lists.postgresql.org Subject: Re: postgis update from 2.5 to 3 Message-ID: <20191112143958.GC20731@msg.df7cb.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Michael Böhm 2019-11-12 > As always i wanted to install the newer version beside the current one and > then do the extension upgrade in postgres. Problem is that installing the > package "postgresql-10-postgis-3-scripts" tries to overwrite some files > already provided by " postgresql-10-postgis-2.5-scripts": > > »/usr/share/postgresql/10/applications/shp2pgsql-gui.desktop« > »/usr/share/postgresql/10/icons/hicolor/16x16/apps/shp2pgsql-gui.png« Meh. PostGIS installs files in way too many weird places. > 1. Removing all 2.5-packages, then installing 3 was one solution, but > "ALTER EXTENSION postgis UPDATE;" afterwards wasn't possible as it > complained about the missing 2.5-scripts-folder Interesting... I would have thought that upgrading didn't need the old files. > 2. Installing postgis-3(-scripts) with "-o > Dpkg::Options::="--force-overwrite"" was successful and i could finish the > upgrade with "ALTER EXTENSION postgis UPDATE;" and "SELECT > PostGIS_Extensions_Upgrade();" That's the workaround I would have suggested, yes. > Is this a packaging-bug, everything working as expected or did i mess up? Packaging bug. I thought I had tested that, but apparently I had tested something else. I wonder how I missed that given that postgresql-10-postgis-3 does depend on postgresql-10-postgis-3-scripts now, and same for the -2.5 packages. Maybe the problem is only with older packages. Which versions of the -2.5 and -3 packages exactly did you use? Thanks for reporting, Christoph