Re: Uninstall script errors

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Uninstall script errors
Дата
Msg-id 20060302211905.GA9618@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Uninstall script errors  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Uninstall script errors  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Thu, Mar 02, 2006 at 02:49:13PM -0500, Tom Lane wrote:
> Michael Fuhr <mike@fuhr.org> writes:
> > Would it make sense for DROP TYPE to have some kind of limited
> > cascade so you could drop a type and its I/O functions at the same
> > time, but still get an error if other objects depend on the type?
> 
> Seems pretty ugly.  Maybe the thing to do is have a command that somehow
> reverts a type to the "shell" state, whereupon the deletion sequence can
> be the exact logical inverse of the creation sequence:

I thought the same thing after the recent commits involving shell
types and got similarly stuck.

Do people at least agree that a DROP TYPE that works without CASCADE
would be desirable?  The rationale is the same as for other DROP
commands: drop the object if nothing depends on it, else raise an
error.  That's impossible now because of the circular dependency
between a type and its I/O functions, which requires the use of
CASCADE.

-- 
Michael Fuhr


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL Anniversary Summit, Call for Contributions
Следующее
От: "Craig A. James"
Дата:
Сообщение: PG Extensions: Must be statically linked?