Written by

Sales Engineer at InterSystems
Question Sylvain Guilbaud · Aug 28, 2023

From DBeaver, how to filter system schemas (ie: starting with "%") ?

I'm looking for an efficient way in DBeaver to filter system tables (ex: belonging to a schema starting with "%").

By using a user with the %All role, DBeaver shows us a long list of system schemas, which forces us to go down the list before accessing the user tables.

By creating a user in IRIS with restricted rights, this list can be reduced, but the interest of the %All role is lost.

Product version: IRIS 2023.2
$ZV: IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2023.2 (Build 227U) Mon Jul 31 2023 17:43:25 EDT

Comments

Sylvain Guilbaud · Aug 28, 2023

The solution is to use the Schemas / Usersfilters in the connection settings :

And adding "%" in the "to exclude" part :

0
Sylvain Guilbaud  Aug 28, 2023 to Sylvain Guilbaud

Actually excluding all the "%" schemas in the connection setting is not working properly as it masks all the schemas' names. You have directly the names of all the tables and when you try to open it, you get an error as the query use SQLUser as the default schema.

0
Dmitry Maslennikov · Aug 28, 2023

I think we still need deeper support for IRIS in DBeaver, and it can be implemented.

So it will be possible to have more options to be configured, and more possibilities 

0
Sylvain Guilbaud  Aug 28, 2023 to Dmitry Maslennikov

I agree.
Filtering "schemas / users" by excluding "%" it not working very well indeed as it masks all the schemas' names and then considers all the tables in the "SQLUser" default schema...

0
Jeffrey Drumm  Aug 28, 2023 to Sylvain Guilbaud

You can explicitly exclude '%' schemas with the pattern "\%*" in the Exclude list:

0
Eduard Lebedyuk · Aug 29, 2023

Alternative approach: create a user which has access only to schemas you need.

0
Sylvain Guilbaud  Aug 30, 2023 to Eduard Lebedyuk

This was typically my first thinking when I said "by creating a user in IRIS with restricted rights, this list can be reduced, but the interest of the %All role is lost."

0