You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try running bootstrap on a database with 3 schema's. One schema has >1000 tables. I want to run on the other custom schema; but the code inspects ALL tables in ALL schemas, which is very slow, and I think, unnecessary. Modifying the code to use only the specific schema, it speeds up dramatically.
sync.py line 168 and 205 seem relevant.
The text was updated successfully, but these errors were encountered:
pgsync is supposed to work across database schemas. So this is supporting a functionality.
That said there is probably a more efficient way of skipping non-relevant tables.
I am running into a similar problem, as I have a database with many schemas but only one schema relevant to pgsync and accessible by a service account. When pgsync tries to create the table_notify() function, it errors with InsufficientPrivilege.
A solution here would be to have an optional top level field schemas that lets us specify which schemas we'll interact with. If missing, it defaults to the current behavior: self.__schemas = sa.inspect(self.engine).get_schema_names()
PGSync version: 2.1.1
Postgres version: 12.5
Python version: 3.8
Problem Description:
I try running
bootstrap
on a database with 3 schema's. One schema has >1000 tables. I want to run on the other custom schema; but the code inspects ALL tables in ALL schemas, which is very slow, and I think, unnecessary. Modifying the code to use only the specific schema, it speeds up dramatically.sync.py
line 168 and 205 seem relevant.The text was updated successfully, but these errors were encountered: