Re: Proposal to include --exclude-extension Flag in pg_dump

Поиск
Список
Период
Сортировка
От Junwang Zhao
Тема Re: Proposal to include --exclude-extension Flag in pg_dump
Дата
Msg-id CAEG8a3LSDc=k4G=AwMEssmEwNhA4v1Bp+6SRk8QKKfzhncHeCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposal to include --exclude-extension Flag in pg_dump  (Ayush Vatsa <ayushvatsa1810@gmail.com>)
Ответы Re: Proposal to include --exclude-extension Flag in pg_dump  (Ayush Vatsa <ayushvatsa1810@gmail.com>)
Список pgsql-hackers
Hi

On Mon, Dec 25, 2023 at 6:22 PM Ayush Vatsa <ayushvatsa1810@gmail.com> wrote:
>
> Added a CF entry for the same https://commitfest.postgresql.org/46/4721/
>
> Regards
> Ayush Vatsa
> Amazon Web Services (AWS)
>
> On Mon, 25 Dec 2023 at 15:48, 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.
>> Attached is the patch for the same. Looking forward to your feedback.
>>
>> Regards
>> Ayush Vatsa
>> Amazon Web services (AWS)

  printf(_("  -e, --extension=PATTERN      dump the specified
extension(s) only\n"));
+ printf(_("  --exclude-extension=PATTERN  do NOT dump the specified
extension(s)\n"));
  printf(_("  -E, --encoding=ENCODING      dump the data in encoding
ENCODING\n"));

long options should not mess with short options, does the following
make sense to you?

 printf(_(" --enable-row-security enable row security (dump only
content user has\n"
             "                                    access to)\n"));
+ printf(_("  --exclude-extension=PATTERN  do NOT dump the specified
extension(s)\n"));
 printf(_(" --exclude-table-and-children=PATTERN\n"

--
Regards
Junwang Zhao



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ayush Vatsa
Дата:
Сообщение: Re: Proposal to include --exclude-extension Flag in pg_dump
Следующее
От: Richard Guo
Дата:
Сообщение: Re: Avoid computing ORDER BY junk columns unnecessarily