Zero-downtime Upgrades for PostgreSQL
1. Simplified Table Registration
If all tables have primary keys, there’s an easier way to handle table registration. You can use the following function to automatically register every table in each schema with pglogical for the default replication set:
SELECT pglogical.replication_set_add_all_tables(
set_name := 'default',
schema_names := array_agg(nspname)
)
FROM schema_list;
2. Handling Sequences
2.1 Why Use pglogical for Sequences
Sequences are a primary reason to use pglogical for major PostgreSQL version upgrades. They are separate objects, often overlooked in logical replication as there are no insert, update, o
超级会员免费看
订阅专栏 解锁全文
1025

被折叠的 条评论
为什么被折叠?



