Filter by templated schema name for postgres queries (#21635)

There were certain queries which did not filter
by the current schema, but hardcoded public schema.

Apart from that, we always filter with the current schema
which allows connection proxies to run multiple MM within
a single DB.
```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2022-11-11 13:03:28 +05:30
коммит произвёл GitHub
родитель f07de38cc5
Коммит 91f7eb0957
32 изменённых файлов: 46 добавлений и 5 удалений

Просмотреть файл

@@ -14,6 +14,7 @@ BEGIN
SELECT count(*) != 0 INTO col_exist_and_type_different
FROM information_schema.columns
WHERE table_name = 'sidebarchannels'
AND table_schema = current_schema()
AND column_name = 'categoryid'
AND data_type = 'character varying'
AND NOT character_maximum_length = 128;