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 1kN5vS-0004D7-Nr for pgsql-admin@arkaria.postgresql.org; Tue, 29 Sep 2020 03:03:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kN5vQ-0006xh-KN for pgsql-admin@arkaria.postgresql.org; Tue, 29 Sep 2020 03:03:32 +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 1kN5vQ-0006xa-Ci for pgsql-admin@lists.postgresql.org; Tue, 29 Sep 2020 03:03:32 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kN5vK-0002KH-8N for pgsql-admin@lists.postgresql.org; Tue, 29 Sep 2020 03:03:31 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kN5vJ-0003Bp-7l; Mon, 28 Sep 2020 23:03:25 -0400 Date: Mon, 28 Sep 2020 23:03:25 -0400 From: Bruce Momjian To: Erik Serrano Cc: pgsql-admin@lists.postgresql.org Subject: Re: Upgrade 9.2 to 9.6 without modifying the location of the tablespaces Message-ID: <20200929030325.GB26860@momjian.us> References: <20200929021752.GA26860@momjian.us> 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.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Sep 29, 2020 at 12:02:02AM -0300, Erik Serrano wrote: > Thank you very much Bruce, I update the binary and the data in this way: > > > bash# /usr/pgsql-9.6/bin/pg_upgrade --old-datadir /var/lib/pgsql/data/ > --new-datadir /var/lib/pgsql/9.6/data/ --old-bindir /usr/bin/ --new-bindir /usr > /pgsql-9.6/bin/ > > > And in that I would like to know if it is essential to move the data?. Remember > that I do not have space on the disks to make a tablespaces move > thank u  Bruce Use link mode so you don't need double the disk space. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee