Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Matt Landry <lelnet(dot)matt(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists
Date: 2015-05-15 14:49:43
Message-ID: 20150515144943.GW30322@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce,

* Bruce Momjian (bruce(at)momjian(dot)us) wrote:
> On Mon, Mar 9, 2015 at 12:43:05PM -0400, Bruce Momjian wrote:
> > On Fri, Mar 6, 2015 at 06:10:15PM -0500, Stephen Frost wrote:
> > > The first is required or anyone who has done that will get the funny
> > > error that started this thread and things won't work anyway, but I
> > > believe the latter is also necessary to patch and back-patch as it could
> > > lead to data loss. It's not a high potential as, hopefully, people will
> > > check first, but I can imagine a hosting provider or environments where
> > > there are lots of independent clusters not catching this issue in their
> > > testing, only to discover someone set their database to 'datallowconn =
> > > false' for whatever reason and now that database is gone...
> >
> > Agreed. I will work on a patch for this.
>
> Attached is a patch that implements this, and it should be backpatch to
> all versions.

Excellent and agreed. Just looked through the patch and didn't do a
full review, but it looks good to me.

Thanks!

Stephen

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2015-05-15 14:51:15 Re: pg_upgrade failing from 9.3 to 9.4 because "template0" already exists
Previous Message Bruce Momjian 2015-05-15 14:40:29 Re: ECPG SET CONNECTION