Update table view based on the selected postgres db by gaborpongracz · Pull Request #554 · dbgate/dbgate

As far as I see, in case of Postgres plugin, dbgate TABLES, VIEWS, FUNCTIONS section not updated based on the selected postgres DB, but showing all the available table from all the databases within the postgres instance.

Adding the #DATABASE# filter into the tableList.sql this problem could solved.

@janproch Could you check this out? Should I update other queries with this WHERE clause too?