Re: pg_upgrade if 'postgres' database is dropped
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: Magnus Hagander <magnus@hagander.net>, Tom Lane <tgl@sss.pgh.pa.us>, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, Stephen Frost <sfrost@snowman.net>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2011-10-28T14:14:49Z
Lists: pgsql-hackers
On Fri, Oct 28, 2011 at 10:07 AM, Bruce Momjian <bruce@momjian.us> wrote: > OK, then the simplest fix, once you modify pg_dumpall, would be to > modify pg_upgrade to remove reference to the postgres database in the > new cluster if it doesn't exist in the old one. That would allow > pg_upgrade to maintain a 1-1 matching of databases in the old and new > cluster --- it allows the change to be locallized without affecting much > code. That sounds just fine. +1. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company