pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Fetter <david@fetter.org>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Extensions not dumped when --schema is used
Date: Mon, 22 Feb 2021 00:15:03 +0100
Message-ID: <20210221231503.GF2256@fetter.org> (raw)
In-Reply-To: <CAECtzeV9+TnuKYrj8XUBmRAhVu9ftyiM6-BKVUS1L6=r=zFCng@mail.gmail.com>
References: <CAECtzeXOt4cnMU5+XMZzxBPJ_wu76pNy6HZKPRBL-j7yj1E4+g@mail.gmail.com>
	<000780DC-6E7E-46D7-AE5A-E56405AC9204@yesql.se>
	<CAECtzeVD7ktWWE=23pb5o4kNbEEjQZJ5w+skEmM0yoW7NtfSqg@mail.gmail.com>
	<24787.1589985558@sss.pgh.pa.us>
	<CAECtzeUEBSMGbmeHmyHeHJKPUVMHWu7W5TKkan7A76LkEMF=pQ@mail.gmail.com>
	<CAECtzeVNstzUb6ft8=dmtV5XUQ-PdLWriG4yVqpgeVM0Qo0e4g@mail.gmail.com>
	<CAOBaU_b2sP_eAUuWgq3k9tDmPCeNQy-YpPCwrAa24nyBgnZzDw@mail.gmail.com>
	<CAECtzeVAVSZp5b95tUwZk4vsSDX6WnpmuZEunMsa--soOQ4D6w@mail.gmail.com>
	<CAECtzeXHcvz7HWv0CNQ3u5nA7ZWsc8hj3ZsE1sSOh-pKVPagEg@mail.gmail.com>
	<CAECtzeV9+TnuKYrj8XUBmRAhVu9ftyiM6-BKVUS1L6=r=zFCng@mail.gmail.com>

On Thu, Feb 18, 2021 at 11:13:06AM +0100, Guillaume Lelarge wrote:
> Le mar. 26 janv. 2021 à 13:42, Guillaume Lelarge <guillaume@lelarge.info> a
> écrit :
> 
> > Le mar. 26 janv. 2021 à 13:41, Guillaume Lelarge <guillaume@lelarge.info>
> > a écrit :
> >
> >> Le mar. 26 janv. 2021 à 05:10, Julien Rouhaud <rjuju123@gmail.com> a
> >> écrit :
> >>
> >>> On Mon, Jan 25, 2021 at 9:34 PM Guillaume Lelarge
> >>> <guillaume@lelarge.info> wrote:
> >>> >
> >>> > "Anytime soon" was a long long time ago, and I eventually completely
> >>> forgot this, sorry. As nobody worked on it yet, I took a shot at it. See
> >>> attached patch.
> >>>
> >>> Great!
> >>>
> >>> I didn't reviewed it thoroughly yet, but after a quick look it sounds
> >>> sensible.  I'd prefer to see some tests added, and it looks like a
> >>> test for plpgsql could be added quite easily.
> >>>
> >>>
> >> I tried that all afternoon yesterday, but failed to do so. My had still
> >> hurts, but I'll try again though it may take some time.
> >>
> >>
> > s/My had/My head/ ..
> >
> >
> I finally managed to get a working TAP test for my patch. I have no idea if
> it's good, and if it's enough. Anyway, new version of the patch attached.
> 
> 
> -- 
> Guillaume.

Thanks for doing this work!

> diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml
> index bcbb7a25fb..95d45fabfb 100644
> --- a/doc/src/sgml/ref/pg_dump.sgml
> +++ b/doc/src/sgml/ref/pg_dump.sgml
> @@ -215,6 +215,38 @@ PostgreSQL documentation
>        </listitem>
>       </varlistentry>
>  
> +     <varlistentry>
> +      <term><option>-e <replaceable class="parameter">pattern</replaceable></option></term>
> +      <term><option>--extension=<replaceable class="parameter">pattern</replaceable></option></term>
> +      <listitem>
> +       <para>
> +        Dump only extensions matching <replaceable
> +        class="parameter">pattern</replaceable>.  When this option is not
> +        specified, all non-system extensions in the target database will be
> +        dumped.  Multiple schemas can be selected by writing multiple
                    ^^^^^^^^^^^^^^^^
I think this should read "Multiple extensions".

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate





view thread (38+ messages)  latest in thread

Message-ID: <20210221231503.GF2256@fetter.org>
Permalink:  ../20210221231503.GF2256@fetter.org/
Also on:    postgresql.org/message-id/20210221231503.GF2256@fetter.org

 · 

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: david@fetter.org, guillaume@lelarge.info, rjuju123@gmail.com, tgl@sss.pgh.pa.us, daniel@yesql.se
  Subject: Re: Extensions not dumped when --schema is used
  In-Reply-To: <20210221231503.GF2256@fetter.org>
  References: <CAECtzeXOt4cnMU5+XMZzxBPJ_wu76pNy6HZKPRBL-j7yj1E4+g@mail.gmail.com> <000780DC-6E7E-46D7-AE5A-E56405AC9204@yesql.se> <CAECtzeVD7ktWWE=23pb5o4kNbEEjQZJ5w+skEmM0yoW7NtfSqg@mail.gmail.com> <24787.1589985558@sss.pgh.pa.us> <CAECtzeUEBSMGbmeHmyHeHJKPUVMHWu7W5TKkan7A76LkEMF=pQ@mail.gmail.com> <CAECtzeVNstzUb6ft8=dmtV5XUQ-PdLWriG4yVqpgeVM0Qo0e4g@mail.gmail.com> <CAOBaU_b2sP_eAUuWgq3k9tDmPCeNQy-YpPCwrAa24nyBgnZzDw@mail.gmail.com> <CAECtzeVAVSZp5b95tUwZk4vsSDX6WnpmuZEunMsa--soOQ4D6w@mail.gmail.com> <CAECtzeXHcvz7HWv0CNQ3u5nA7ZWsc8hj3ZsE1sSOh-pKVPagEg@mail.gmail.com> <CAECtzeV9+TnuKYrj8XUBmRAhVu9ftyiM6-BKVUS1L6=r=zFCng@mail.gmail.com> <20210221231503.GF2256@fetter.org>

* 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