When using Bi-Directional Replication for PostgreSQL,
the protected bdr tables don't allow query for data,
which leads to an error::
postgres failure: ('FATAL', '42939', 'The BDR extension reserves the
database bdr_supervisordb for its own use')"
For non-BDR systems, we can't allow access on the non-existant
database so this solution simply filters out databases with name
'bdr_supervisordb', which raises no psql error.
Fixes ZPS-249
When using Bi-Directional Replication for PostgreSQL, the protected bdr tables don't allow query for data, which leads to an error::
postgres failure: ('FATAL', '42939', 'The BDR extension reserves the database bdr_supervisordb for its own use')"
For non-BDR systems, we can't allow access on the non-existant database so this solution simply filters out databases with name 'bdr_supervisordb', which raises no psql error.