Re: Missing pg_depend entries for constraints created by extensions (deptype 'e')

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Missing pg_depend entries for constraints created by extensions (deptype 'e')
Дата
Msg-id 3154233.1748793853@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Missing pg_depend entries for constraints created by extensions (deptype 'e')  ("Joel Jacobson" <joel@compiler.org>)
Список pgsql-hackers
"Joel Jacobson" <joel@compiler.org> writes:
> Explicitly adding deptype='e' entries for all objects created during
> CREATE EXTENSION would significantly improve this situation.
> With this enhancement, pg_dump could easily detect and warn users about
> manually-added objects, or even dump these objects as comments for manual review.

I'm pretty skeptical that this situation justifies the amount of
pg_depend bloat that you're suggesting.  I also don't think it'd be
easy or cheap for pg_dump to detect objects that should be dumped
because they lack an 'e' dependency but depend on objects that do
have one.  Normally, because extension member objects aren't dumped,
pg_dump doesn't even collect info on their indexes etc.

In short, it seems like quite a lot of work and quite a lot of
overhead (paid by everybody) to accommodate somebody abusing
extensions in one very specific way.  There are a lot of scenarios
in which a cowboy DBA can cause the database contents to differ
from what the extension scripts say, and most of them would not
be helped by what you're suggesting.

            regards, tom lane



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