Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDxwY-00021z-1v for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Feb 2021 23:15:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lDxwV-0001Km-9U for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Feb 2021 23:15:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDxwU-0001KS-Iv for pgsql-hackers@lists.postgresql.org; Sun, 21 Feb 2021 23:15:10 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lDxwQ-0003ei-0F for pgsql-hackers@lists.postgresql.org; Sun, 21 Feb 2021 23:15:08 +0000 Received: by fetter.org (Postfix, from userid 1001) id 108DB40D01; Mon, 22 Feb 2021 00:15:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fetter.org; s=default; t=1613949304; bh=JCRpHvmDg8gYMPX9uzW4V+DNMT0H/VxLXiWNrcmbcoo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=umzL7nyJqo8VOI4WXhM5pcrdhgZn1dJt0fVCsE5ffkp5IJ8aBhkZr3L3LDbEx2n7m KvtRtp83XctSytKq7JKxFR5Jf41QyA5o/oh+AHL/A+5Io2Z6eFKVrhkEmB27J/OR3L H8NFGfhXi9DhMujKaQaifkBpzTAKbSIvZuoTJTvo0QpM3sIMomWO16Exbg3FWwVgRL AgusCSyDhQ5oS7CTy6oUfNwl6JpZqYqiYcEH1DXTvXHcf9f7i5U1ixSoVm1iQ7hLqs T8jBVXHWvS722mmqtE5CvENv0lsdRH5glBY81LiuhSpnDrcXAOyd7V12QXrarBfSXQ QtNhi2EMymErw== Date: Mon, 22 Feb 2021 00:15:03 +0100 From: David Fetter To: Guillaume Lelarge Cc: Julien Rouhaud , Tom Lane , Daniel Gustafsson , PostgreSQL Hackers Subject: Re: Extensions not dumped when --schema is used Message-ID: <20210221231503.GF2256@fetter.org> References: <000780DC-6E7E-46D7-AE5A-E56405AC9204@yesql.se> <24787.1589985558@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Feb 18, 2021 at 11:13:06AM +0100, Guillaume Lelarge wrote: > Le mar. 26 janv. 2021 à 13:42, Guillaume Lelarge a > écrit : > > > Le mar. 26 janv. 2021 à 13:41, Guillaume Lelarge > > a écrit : > > > >> Le mar. 26 janv. 2021 à 05:10, Julien Rouhaud a > >> écrit : > >> > >>> On Mon, Jan 25, 2021 at 9:34 PM Guillaume Lelarge > >>> 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 > > > > + > + > + > + > + > + Dump only extensions matching + class="parameter">pattern. 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 http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate