Re: [SQL] dropping a schema and cross-schema dependencies

2007-04-06 Thread George Pavlov
> > As an immediate solution can anyone share a comprehensive query to > > INFORMATION_SCHEMA/PG_CATALOG that can be used to check for any > > cross-schema dependencies and halt before issuing a DROP > with a CASCADE? > > Issue the DROP without CASCADE and read the error message. Well, to be pre

Re: [SQL] dropping a schema and cross-schema dependencies

2007-04-06 Thread Tom Lane
"George Pavlov" <[EMAIL PROTECTED]> writes: > As an immediate solution can anyone share a comprehensive query to > INFORMATION_SCHEMA/PG_CATALOG that can be used to check for any > cross-schema dependencies and halt before issuing a DROP with a CASCADE? Issue the DROP without CASCADE and read the

[SQL] dropping a schema and cross-schema dependencies

2007-04-06 Thread George Pavlov
I would like to be able to drop a schema with all of its objects, but don't want to accidentally drop objects that are in other schemas. If there are such objects I'd prefer the drop to fail. If I use DROP SCHEMA FOO CASCADE I run the risk of dropping objects from other schemas that depend on objec