Re: Undocumented behavior od DROP SCHEMA ... CASCADE
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Undocumented behavior od DROP SCHEMA ... CASCADE |
| Дата | |
| Msg-id | 20160812205508.GA714477@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: Undocumented behavior od DROP SCHEMA ... CASCADE (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Undocumented behavior od DROP SCHEMA ... CASCADE
|
| Список | pgsql-docs |
Tom Lane wrote: > I'm inclined to suggest that maybe the generic phrasing could be > "Automatically drop objects that depend on the <whatever> [(such as ...)], > and in turn all objects that depend on those objects". I think it'd be a good idea to add some more discoverability: what would be deleted if an object X were to be deleted? I suppose this is just a recursive query on pg_depend, but expecting users to handle that on their own is preposterous. We could offer a simple function, to which you pass classid, objid, objsubid, returns setof same plus obj_description. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-docs по дате отправления: