extend safety checks for -I

This commit is contained in:
Dmitry Ivanov 2017-03-24 17:01:09 +03:00
parent 839aec7e71
commit 6d8ff6ba19

View File

@ -360,6 +360,11 @@ main(int argc, char *argv[])
(errcode(EINVAL),
errmsg("cannot specify --table (-t) and --exclude-extension (-C)")));
if (exclude_extension_list.head && parent_table_list.head)
ereport(ERROR,
(errcode(EINVAL),
errmsg("cannot specify --parent-table (-I) and --exclude-extension (-C)")));
if (noorder)
orderby = "";