pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix pg_dump to dump shell types.
Date: Sun, 9 Aug 2015 18:07:55 -0400
Message-ID: <55C7CF3B.30703@dunslane.net> (raw)
In-Reply-To: <E1ZMljD-0006bX-Fi@gemulon.postgresql.org>
References: <E1ZMljD-0006bX-Fi@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>



On 08/04/2015 07:34 PM, Tom Lane wrote:
> Fix pg_dump to dump shell types.
>
> Per discussion, it really ought to do this.  The original choice to
> exclude shell types was probably made in the dark ages before we made
> it harder to accidentally create shell types; but that was in 7.3.
>
> Also, cause the standard regression tests to leave a shell type behind,
> for convenience in testing the case in pg_dump and pg_upgrade.
>
> Back-patch to all supported branches.
>
>


Still not quite there. If either 9.0 or 9.1 is upgraded to 9.2 or later, 
they fail like this:

    pg_restore: creating TYPE "public"."myshell"
    pg_restore: setting owner and privileges for TYPE "public"."myshell"
    pg_restore: setting owner and privileges for ACL "public"."myshell"
    pg_restore: [archiver (db)] Error from TOC entry 4293; 0 0 ACL
    myshell buildfarm
    pg_restore: [archiver (db)] could not execute query: ERROR:  type
    "myshell" is only a shell
         Command was: REVOKE ALL ON TYPE "myshell" FROM PUBLIC;
    REVOKE ALL ON TYPE "myshell" FROM "buildfarm";
    GRANT ALL ON TYPE "myshell" TO PUBL...


We could just declare that we don't support this for versions older than 
9.2, in which case I would just remove the type from the test database 
before testing cross-version upgrade. But if it's easily fixed then 
let's do it.

cheers

andrew




-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (14+ messages)  latest in thread

Message-ID: <55C7CF3B.30703@dunslane.net>
Permalink:  ../55C7CF3B.30703@dunslane.net/
Also on:    postgresql.org/message-id/55C7CF3B.30703@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix pg_dump to dump shell types.
  In-Reply-To: <55C7CF3B.30703@dunslane.net>
  References: <E1ZMljD-0006bX-Fi@gemulon.postgresql.org> <55C7CF3B.30703@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox