Re: [PATCHES] YADP - Yet another Dependency Patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] YADP - Yet another Dependency Patch
Дата
Msg-id 6821.1019107477@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] YADP - Yet another Dependency Patch  ("Rod Taylor" <rbt@zort.ca>)
Список pgsql-hackers
"Rod Taylor" <rbt@zort.ca> writes:
>> 3. Isn't there a better way to find the initial dependencies?  That
>> SELECT is truly ugly, and more to the point is highly likely to
>> break anytime someone rearranges the catalogs.

> I'm having a really hard time coming up with a good method for this.

Well, do we actually need an *accurate* representation of the
dependencies?  You seemed to like my idea of pinning essential stuff,
and in reality all of the initial catalog structures ought to be pinned.
Maybe it would be sufficient to just make "pinned" entries for
everything that appears in the initial catalogs.  Someone who's really
intent on manually deleting, say, the "box" datatype could be expected
to be bright enough to figure out how to remove the pg_depends entry
that's preventing him from doing so.

(There are a very small number of things that are specifically intended
to be droppable, like the "public" namespace, but seems like excluding
that short list from the pg_depends entries would be more maintainable
than the approach you've got now.)
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: regexp character class locale awareness patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: timeout implementation issues