简体   繁体   中英

Exclude a few tables from logical replication in postgres?

As in MySQL we have option to exclude a few table from replication (or include). But in postgres, we have the option to add tables to publication/subscription but if we have like 1000 tables and we want to exclude 2 tables out of these, do we have this option anyways? So instead of adding 998, I just exclude 2

I'd say that with 1000 tables your schema is weirdly designed.

Anyway, in PostgreSQL we have psql and its \\gexec , which can be used to automatize the task.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM