pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Martín Marqués <martin@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: pg_dump with tables created in schemas created by extensions
Date: Tue, 23 Aug 2016 16:48:17 -0500
Message-ID: <abb09d01-b836-16d4-0ae0-9ffaca7f3393@BlueTreble.com> (raw)
In-Reply-To: <CAPdiE1y1dKGw4RWwHN5VoTb6JgWaA_W1mFZJSLHVKxbPHUmCqA@mail.gmail.com>
References: <99581032-71de-6466-c325-069861f1947d@2ndquadrant.com>
	<CAB7nPqSxgx=wywMbfmV-+0bGqc+03W9KWYCQU=PZVsJ7LvK9Mw@mail.gmail.com>
	<CAPdiE1w=+4QeLCJ3ijJW1HcUaDZsto_tE5ipJ+hYrzUvZsy6gg@mail.gmail.com>
	<CAPdiE1y1dKGw4RWwHN5VoTb6JgWaA_W1mFZJSLHVKxbPHUmCqA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 8/23/16 3:34 PM, Martín Marqués wrote:
> I found quite some other objects we should be checking as well, but
> this will add some duplication to the tests, as I'd just copy (with
> minor changes) what's in src/bin/pg_dump/t/002_pg_dump.pl
>
> I can't think of a way to avoid this duplication, not that it really
> hurts. We would have to make sure that any new objects added to one
> test, if needed, are added to the other (that's a bit cumbersome).

At one point I had some code that understood what object names (ie: 
AGGREGATE, TABLE, etc) went with what catalog tables, what ones lived 
inside a schema (as opposed to globally), and which ones were 
shared/global (cross-database). I think I needed this for some automatic 
handling of comments, but it's been a while. Maybe something like that 
would help reduce the duplication...
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461


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



view thread (26+ messages)  latest in thread

Message-ID: <abb09d01-b836-16d4-0ae0-9ffaca7f3393@BlueTreble.com>
Permalink:  ../abb09d01-b836-16d4-0ae0-9ffaca7f3393@BlueTreble.com/
Also on:    postgresql.org/message-id/abb09d01-b836-16d4-0ae0-9ffaca7f3393@BlueTreble.com

 · 

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-hackers@postgresql.org
  Cc: Jim.Nasby@BlueTreble.com, martin@2ndquadrant.com, michael.paquier@gmail.com, sfrost@snowman.net, tgl@sss.pgh.pa.us
  Subject: Re: pg_dump with tables created in schemas created by extensions
  In-Reply-To: <abb09d01-b836-16d4-0ae0-9ffaca7f3393@BlueTreble.com>
  References: <99581032-71de-6466-c325-069861f1947d@2ndquadrant.com> <CAB7nPqSxgx=wywMbfmV-+0bGqc+03W9KWYCQU=PZVsJ7LvK9Mw@mail.gmail.com> <CAPdiE1w=+4QeLCJ3ijJW1HcUaDZsto_tE5ipJ+hYrzUvZsy6gg@mail.gmail.com> <CAPdiE1y1dKGw4RWwHN5VoTb6JgWaA_W1mFZJSLHVKxbPHUmCqA@mail.gmail.com> <abb09d01-b836-16d4-0ae0-9ffaca7f3393@BlueTreble.com>

* 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