Re: Proposal to include --exclude-extension Flag in pg_dump - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject Re: Proposal to include --exclude-extension Flag in pg_dump
Date
Msg-id CAExHW5u1cfUK=rxHhsgteVW8=UYS+ht6-ai56fAfTF0U9o9=aA@mail.gmail.com
Whole thread Raw
In response to Proposal to include --exclude-extension Flag in pg_dump  (Ayush Vatsa <ayushvatsa1810@gmail.com>)
Responses Re: Proposal to include --exclude-extension Flag in pg_dump
List pgsql-hackers
On Mon, Dec 25, 2023 at 3:48 PM Ayush Vatsa <ayushvatsa1810@gmail.com> wrote:
>
> Hi PostgreSQL Community,
> Recently I have been working on pg_dump regarding my project and wanted to exclude an extension from the dump
generated.I wonder why it doesn't have --exclude-extension type of support whereas --extension exists! 
> Since I needed that support, I took the initiative to contribute to the community by adding the --exclude-extension
flag.

Aren't extensions excluded by default? That's why we have --extension.
Why do we need to explicitly exclude extensions?

--
Best Wishes,
Ashutosh Bapat



pgsql-hackers by date:

Previous
From: John Naylor
Date:
Subject: Re: warn if GUC set to an invalid shared library
Next
From: Pavel Stehule
Date:
Subject: Re: Autonomous transactions 2023, WIP