pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Moshe Jacobson <moshe@neadwerx.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: daniele.varrazzo@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14456: pg_dump doesn't restore permissions on tables belonging to an extension
Date: Thu, 12 Jan 2017 16:27:56 -0500
Message-ID: <19310.1484256476@sss.pgh.pa.us> (raw)
In-Reply-To: <20170112212208.2icg45ejn3hup5ts@alvherre.pgsql>
References: <20170112212208.2icg45ejn3hup5ts@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> Moshe Jacobson <moshe@neadwerx.com> writes:
>>> The reason I add the dynamically-created tables to the extension is so that
>>> they are never included in the pg_dump output.

>> The extension mechanism definitely isn't meant to do that ;-).  Maybe
>> you could put these not-to-dump tables in their own schema and exclude
>> that schema from pg_dump with -N?

> Is this related to this commit?
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=f2fcad27d59c8e5c48f8fa0a96c8355e4...

Seems like it doesn't quite match Moshe's use case --- he *doesn't* want
those tables dumped.  I'm not sure if he cares whether they have
dependencies on the extension.

			regards, tom lane


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



view thread (18+ messages)  latest in thread

Message-ID: <19310.1484256476@sss.pgh.pa.us>
Permalink:  ../19310.1484256476@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19310.1484256476@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, moshe@neadwerx.com, sfrost@snowman.net, daniele.varrazzo@gmail.com
  Subject: Re: BUG #14456: pg_dump doesn't restore permissions on tables belonging to an extension
  In-Reply-To: <19310.1484256476@sss.pgh.pa.us>
  References: <20170112212208.2icg45ejn3hup5ts@alvherre.pgsql> <19310.1484256476@sss.pgh.pa.us>

* 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