Re: upgrade failure from 9.5 to head

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: upgrade failure from 9.5 to head
Date: 2015-08-03 00:20:22
Message-ID: 20150803002022.GP3587@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Andres Freund (andres(at)anarazel(dot)de) wrote:
> On 2015-08-01 19:13:05 -0400, Noah Misch wrote:
> > On Wed, Jul 29, 2015 at 04:42:55PM -0400, Andrew Dunstan wrote:
> > > The next hump is this, in restoring contrib_regression_test_ddl_parse:
> > >
> > > pg_restore: creating FUNCTION "public"."text_w_default_in("cstring")"
> > > pg_restore: [archiver (db)] Error while PROCESSING TOC:
> > > pg_restore: [archiver (db)] Error from TOC entry 243; 1255 62534
> > > FUNCTION text_w_default_in("cstring") buildfarm
> > > pg_restore: [archiver (db)] could not execute query: ERROR: pg_type
> > > OID value not set when in binary upgrade mode
> > > Command was: CREATE FUNCTION "text_w_default_in"("cstring")
> > > RETURNS "text_w_default"
> > > LANGUAGE "internal" STABLE STRICT
> > > AS $$texti...
> > >
> > > Is this worth bothering about, or should I simply remove the database before
> > > trying to upgrade?
> >
> > That's a bug. The test_ddl_deparse suite leaves a shell type, which
> > pg_upgrade fails to reproduce. Whether to have pg_upgrade support that or
> > just error out cleanly is another question.
>
> There seems little justification to not support shell types. We should
> also add a shell type to the standard regression testing database,
> they're "weird" enough that some increased exposure seems like a good
> idea.

+1.

I was doing testing the other day and ran into the "pg_dump doesn't
support shell types" issue and it was annoyingly confusing.

Thanks!

Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2015-08-03 00:32:23 Re: nodes/*funcs.c inconsistencies
Previous Message Andres Freund 2015-08-02 23:21:11 Re: upgrade failure from 9.5 to head