PgSqlDump
Posted: Tue 09 Jun 2015 13:31
Running into two problems with PgSqlDump. First I want to dump the schema, tables and views only but it also includes sequences which I am pretty sure the code below shouldn't:
Secondly, the sequences have owners set whereas the Tables do not. We are a little behind (7.3.342.0) but not too far.
cheers!
Code: Select all
using (var schemaBackup = new PgSqlDump()
{
Connection = myConnection.getConnection(),
QuoteIdentifier = true,
Mode = DumpMode.Schema,
GenerateHeader = false,
ObjectTypes = PgSqlDumpObjects.Schemas ^ PgSqlDumpObjects.Tables ^ PgSqlDumpObjects.Views
})
{ .... }
cheers!