Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1belMa-0005OM-4b for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Aug 2016 15:54:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1belMZ-0005ne-HH for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Aug 2016 15:54:11 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1belMZ-0005nT-4z for pgsql-bugs@postgresql.org; Tue, 30 Aug 2016 15:54:11 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1belMU-0005RZ-EH for pgsql-bugs@postgresql.org; Tue, 30 Aug 2016 15:54:10 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1belMS-0004TT-Kq; Tue, 30 Aug 2016 11:54:04 -0400 Date: Tue, 30 Aug 2016 11:54:04 -0400 From: Bruce Momjian To: furlongs@osti.gov Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14304: WAL files pg_upgrade Message-ID: <20160830155404.GC21961@momjian.us> References: <20160830154141.15676.28819@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160830154141.15676.28819@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Tue, Aug 30, 2016 at 03:41:41PM +0000, furlongs@osti.gov wrote: > The following bug has been logged on the website: > > Bug reference: 14304 > Logged by: Shane Furlong > Email address: furlongs@osti.gov > PostgreSQL version: 9.4.9 > Operating system: centOS > Description: > > My shop is running PostgreSQL 9.0 and pg_upgrading to 9.4. > > Currently WAL files are saved in a location /pgsql/archive. > > New WAL files will be stored in location /pgsql/archive94. > > My question is how does pg_upgrade handle WAL files. It looks like to me > that pg_upgrade only addresses the data directory and not the archive > directory. > > Is it necessary to flush all 9.0 WAL files prior to running pg_upgrade? Or > would one just copy the WAL files from the previous location to the new > location? > > Any help or direction you can supply would be greatly appreciated. pg_upgrade does _nothing_ with WAL. It does not copy it from the old cluster to the new cluster, nor does it interact with the archive directory. I do recommend you use a _different_ directory to store the WAL after the ugprade so the WAL file names don't conflict --- seems you are already doing that. :-) -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs