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 1gUFdm-00053Z-SC for pgsql-general@arkaria.postgresql.org; Tue, 04 Dec 2018 18:41:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gUFdk-0001wN-N4 for pgsql-general@arkaria.postgresql.org; Tue, 04 Dec 2018 18:41:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUFdk-0001uS-A9 for pgsql-general@lists.postgresql.org; Tue, 04 Dec 2018 18:41:48 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUFdh-0000Bt-1K for pgsql-general@lists.postgresql.org; Tue, 04 Dec 2018 18:41:47 +0000 Received: by mail-pg1-x543.google.com with SMTP id w7so7754735pgp.13 for ; Tue, 04 Dec 2018 10:41:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ardentperf-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Ghr5jDb8Og6T7dyrdFNeAmxU6UiEzgO2JY7xu/ZuTb4=; b=Kl0XjkZ3aUqkCn5jysntsgRmUBdKOGqjlNX8lgQXu0n40TdAmQipnYp8LbPWqkvoyn 1Y6OL6IeuWFoFBlK0od1JRNT901vsvUicNXQrnYPz2YclDLrUWkcEa7IkOyrknG4U03T cpQMRx1bANQ5pw6kDJfvS/bCJFvI2a2vrHnrlJuIcZBjnhmvvLCf7RxOxLIdr8Qi3j7G MFNZIvoGFUZyM34QHPyz3Jbd+aTnLMQvjQaK3gZ4dJruJv+wL90hSLe/NezjphERm9c5 naOwFA9zN5rdDuHrS0jSP0vbORTpdEo+JyM15UPRuhdD8gl87fc2y9mVgmzseOHX2gvu qL4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ghr5jDb8Og6T7dyrdFNeAmxU6UiEzgO2JY7xu/ZuTb4=; b=teC1Dm4COQ7mKZ2ql4fnsrrdeeblTRjiVomycsZu2EUY3GNsMRtUMhmQFTCL3iCchR SiLtHNWfTM4Xa+onrjQjTFEo6065RTSFfvjMEs+CW27bVBAAOGwcd5mDCBP2DXcVzCrB wXL1MVZuNxwSAVgepqZGQXrKRi7PXiZePHWh2vXr20hkPPeft43wdyJ7dMNNRJt5qKtZ lSWH+g+xja2qGWvtUmUWLoMhNVkrPXaVrjG03u9u1teBsSYjU5+lXXmqCe2xJHM+BzQJ fU+hR1OISJ5PpkGQgYwo/w8w73pbUS2zQBYsSwEJaA1RQ39Sk5OztXPo8Qu+iDccxWnW xoRg== X-Gm-Message-State: AA+aEWa8lnnM00prf5ryB+xkrVqwt9Czlm21gf3pul+5HJmmMRJ4E6v3 2RuUGSoG1PPShA5vVwlw7TA+Fuvu10c= X-Google-Smtp-Source: AFSGD/VuhxFW9y9DpRqPfCj8lggom6p33uMG6rDB67gfF7g6qIYUneZ6h8btUypK6f7L3VkARx4q9w== X-Received: by 2002:a62:5716:: with SMTP id l22mr21721485pfb.16.1543948902195; Tue, 04 Dec 2018 10:41:42 -0800 (PST) Received: from 186590ce269b.ant.amazon.com ([54.240.196.175]) by smtp.gmail.com with ESMTPSA id 128sm31182213pfu.129.2018.12.04.10.41.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 10:41:41 -0800 (PST) Subject: Re: postgis after pg_upgrade To: Slavcho Trnkovski , pgsql-general@lists.postgresql.org References: From: Jeremy Schneider Message-ID: Date: Tue, 4 Dec 2018 10:41:40 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/30/18 05:11, Slavcho Trnkovski wrote: > I have postgresql 9.4 with postgis extension installed (latest version, > 2.4.5). I upgraded postgresql from 9.4 to 9.6.  > After upgrading to 9.6 I get the following result > from PostGIS_full_version() >  select PostGIS_full_version(); > >  ... (procs need upgrade for use with "96") ... > > Is there any way to resolve this besides recreating the extension? If I'm reading the postgis docs correctly, this message specifically means that you must do a full dump/reload of postgis-enabled databases. http://postgis.net/docs/manual-2.4/postgis_installation.html#upgrading > If you can't find the postgis_upgrade*.sql specific for upgrading > your version you are using a version too early for a soft upgrade > and need to do a HARD UPGRADE. > > The PostGIS_Full_Version function should inform you about the need > to run this kind of upgrade using a "procs need upgrade" message. > > By HARD UPGRADE we mean full dump/reload of postgis-enabled > databases. -- http://about.me/jeremy_schneider