Ensure backup a partition table should not backup the whole database.

For the partition table same argument '--table' is used with pg_dump.

Fixes #3386
This commit is contained in:
Akshay Joshi
2019-10-07 16:32:37 +05:30
parent 55c6fa0d93
commit 1e4fd552ac
2 changed files with 2 additions and 1 deletions

View File

@@ -253,7 +253,7 @@ export class BackupDialogWrapper extends DialogWrapper {
this.view.model.set('schemas', [nodeData._label]);
}
if (nodeData._type === 'table') {
if (nodeData._type === 'table' || nodeData._type === 'partition') {
this.view.model.set('tables', [
[treeInfo.schema._label, nodeData._label],
]);