Permission denied errors are now being ignored while reading the system catalog.
Other parts of the program will have to cope with the fact that not all data will be available. Close #4
This commit is contained in:
parent
65c3d9f2b4
commit
8cb1d6eab3
1 changed files with 6 additions and 2 deletions
|
|
@ -180,8 +180,12 @@ void load(Pgsql::Connection &conn, IPgContainter &pg_cont)
|
|||
}
|
||||
else {
|
||||
auto details = result.diagDetails();
|
||||
|
||||
throw std::runtime_error("Query failed\n" + details.errorMessage);
|
||||
if (details.state == "42501") { // permission denied
|
||||
// ignore this for now
|
||||
}
|
||||
else {
|
||||
throw std::runtime_error("Query failed\n" + details.errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue