Re: DROP CASCADE transitive dependencies

2018-12-03 Thread Alvaro Herrera
On 2018-Dec-03, C GG wrote: > data=# begin; > BEGIN > data=# DROP SCHEMA blah CASCADE; > NOTICE: drop cascades to 278 other objects > DETAIL: drop cascades to type blah.timeclock_compute_hours_type > ... > and 178 other objects (see server log for list) > data=# rollback; > ROLLBACK > data=# >

Re: DROP CASCADE transitive dependencies

2018-12-03 Thread Pavel Stehule
po 3. 12. 2018 v 20:07 odesílatel C GG napsal: > > > On Mon, Dec 3, 2018 at 1:26 PM Tom Lane wrote: > >> C GG writes: >> > ...PostgreSQL 9.5... >> > `DROP SCHEMA blah;` reports all the dependent objects and advises to >> `DROP >> > SCHEMA blah CASCADE;` ... >> >> > Will DROP ... CASCADE travers

Re: DROP CASCADE transitive dependencies

2018-12-03 Thread C GG
On Mon, Dec 3, 2018 at 1:26 PM Tom Lane wrote: > C GG writes: > > ...PostgreSQL 9.5... > > `DROP SCHEMA blah;` reports all the dependent objects and advises to > `DROP > > SCHEMA blah CASCADE;` ... > > > Will DROP ... CASCADE traverse the entire dependency tree for each of the > > dependent obje

Re: DROP CASCADE transitive dependencies

2018-12-03 Thread Tom Lane
C GG writes: > ...PostgreSQL 9.5... > `DROP SCHEMA blah;` reports all the dependent objects and advises to `DROP > SCHEMA blah CASCADE;` ... > Will DROP ... CASCADE traverse the entire dependency tree for each of the > dependent objects (potentially dropping something unintended), or will it > st