Drop Cascade not happening
Posted: Wed 06 Mar 2013 18:15
(VB.Net 2010 / Devart Version 6.5.192.0 / PostgreSQL 9.2.3)
Hi using the following code I created a backup:
The restore is failing:
stating that it can't drop a view because it's being used by other objects, which is correct but I would expect the drop code to drop cascade the views.
Any ideas on how to deal with this situation?
Thanks,
Chris
Hi using the following code I created a backup:
Code: Select all
pgDump.Connection = conn
pgDump.Schema = gclsSession.pg_Schema
pgDump.IncludeDrop = True
pgDump.ObjectTypes = PgSqlDumpObjects.Tables + PgSqlDumpObjects.Indexes + PgSqlDumpObjects.Sequences + PgSqlDumpObjects.Constraints + PgSqlDumpObjects.Views
pgDump.Backup(strFullPath)
Code: Select all
pgDump.Connection = conn
pgDump.Restore(strFullPath)
Any ideas on how to deal with this situation?
Thanks,
Chris