New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support table and column blacklisting #21
Comments
Yes, this would be a good feature to add to Bottled Water. I think we'd have to do it in the Bottled Water extension. Pull requests welcome :) |
Being able to choose the tables would be awesome indeed! |
One extra benefit from doing this: if you're using BW with a database generated using ActiveRecord migrations, then you have to run with It's hard to see a use case for replicating |
@ept say I want to implement whitelisting or blacklisting of table names. For the snapshot part, I think I can filter at In particular, I am confused about the transaction begin/commit functions ( |
@bchazalet Would be great if you want to try making a patch. For snapshot: yes, For log decoding: I think you only need to update To filter on tables, I would suggest first translating the whitelist/blacklist into a list of Oids identifying the tables to be included/excluded, by querying the catalog from the client (similar to what Let me know if I can help further! |
As a workaround, if your Kafka cluster is configured to not automatically create topics ( (The keen-eyed will notice that this workaround actually simulates a whitelist, not a blacklist :)) |
A feature that's useful to financial institutions (probably others too) is to have a configurable blacklist of tables and/or columns that you don't want sent to Kafka. This is generally because the data is considered sensitive information and most likely has strict compliance requirements, but it could also just be that it isn't useful for analytical purposes.
I'm not aware that this is achievable with Postgres itself, but I'm open to that solution as well if it exists.
The text was updated successfully, but these errors were encountered: