Re: pg_dump new feature: exporting functions only. Bad or good idea ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump new feature: exporting functions only. Bad or good idea ?
Дата
Msg-id 3386445.1648231002@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: pg_dump new feature: exporting functions only. Bad or good idea ?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: pg_dump new feature: exporting functions only. Bad or good idea ?
Список pgsql-hackers
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> I don't find the --objectype-only option to be desirable.  psql
> --tables-only --functions-only just seems odd, no longer are they "only".
> I would go with --function-all (and maybe --function-system and
> --function-user) if going down this path but the wildcard feature can
> handle this just fine and we want that feature anyway.

Agreed.  "--function=*" is more general than "--function-only",
and shorter too, so what's not to like?

> Except succinctly
> omitting system objects which should get its own general option.

pg_dump never dumps system objects, so I don't see a need for
a switch to tell it not to.

            regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Add 'basebackup_to_shell' contrib module.
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: pg_dump new feature: exporting functions only. Bad or good idea ?