Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTXAP-0000ip-Uv for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Oct 2013 13:17:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VTXAP-0001RN-4f for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Oct 2013 13:17:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTXAO-0001RG-8P for pgsql-bugs@postgresql.org; Tue, 08 Oct 2013 13:17:36 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTXAG-0007fr-Vi for pgsql-bugs@postgresql.org; Tue, 08 Oct 2013 13:17:35 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1VTX9x-0001a8-G8; Tue, 08 Oct 2013 09:17:09 -0400 Date: Tue, 8 Oct 2013 09:17:09 -0400 From: Bruce Momjian To: fburgess@radiantblue.com Cc: pgsql-bugs@postgresql.org Subject: Re: Installing/Upgrading PostgreSQL 9.1.6 to 9.3 known bugs? Message-ID: <20131008131709.GI22450@momjian.us> References: <20131007080742.5a830134ae84016b0174832fdc1a3173.370d0aaa3c.wbe@email11.secureserver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131007080742.5a830134ae84016b0174832fdc1a3173.370d0aaa3c.wbe@email11.secureserver.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.2 (--) 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 Mon, Oct 7, 2013 at 08:07:42AM -0700, fburgess@radiantblue.com wrote: > Bruce, Proposed Steps. Do they look feasible? > > 1.) pg_dump -h localhost -p 5432 -U postgres -Fc -b -v -f "/somepath/ > testdb.backup" testdb > 2.) CREATE DATABASE newdb TEMPLATE=template_postgis; > 3.) perl ../postgis-postgres/postgis-2.1.1/utils/postgis_restore.pl "/somepath/ > testdb.backup" | psql -h localhost -p 5432 -U postgres newdb 2> errors.txt <- > this step may run 5-6 days, since our backup runs that long, right? > 4.) At this point we will have two 6.1TB databases, so it looks like a > prerequisite is to have available double the db size in disk space, right? > 5.) then if no critical errors, there will be errors since we have our testdb > schema in the public folder > 5a.) ALTER DATABASE testdb RENAME TO olddb; > 5b.) ALTER DATABASE newdb RENAME TO testdb; > 6.) At this point hopefully we should be upgraded from postgis 1.5.3 to postgis > 2.1.1, with PostgreSQL 9.1.6 > 7.) then can we just use pg_upgrade with the hard links option, instead of > copying files to the new cluster option to upgrade to PostgreSQL 9.3? Sorry, I have no idea how to upgrade PostGIS. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs