Always upgrade! There are hundreds of fixes between each PostgreSQL release, and an important number of them are security fixes! Logical replication allows making major upgrades with minimal downtime and feasible cons.
This webinar covered:
- PostgreSQL releases
- Upgrade options
- What is Pglogical?
- Major upgrades
15. 15
Missing
Features
● Parallel Aggregates
● Parallel sequential scans
● Declarative partitioning
● SCRAM Authentication
● Just In Time (JIT) compilation
● Parallel creation of index
● Stored Procedures
● Reindex concurrently
● etc.
16. 16
Nomenclature
and
conventions
● Node -- Postgresql database instance
● Provider -- sending node
● Subscriber -- receiver node
● Replication Set -- rule
● Subscription -- one subscriber makes to the
provider.
● pg95 pg13 -- my hostnames
17. 17
Requirements
● Primary key
SELECT n.nspname as schema, c.relname as table
FROM
pg_class c
JOIN
pg_namespace n
ON n.oid = c.relnamespace
WHERE
c.relkind = 'r'
AND NOT EXISTS (SELECT 1 FROM pg_constraint con
WHERE con.conrelid = c.oid AND con.contype = 'p'
)
AND n.nspname <> ALL ( ARRAY [
'pg_catalog',
'sys',
'dbo',
'information_schema']);
schema | table
--------+-------
(0 rows)
26. 26
Check SELECT subscription_name, status
FROM pglogical.show_subscription_status();
subscription_name | status
------------------------+-------------
my_subscription | replicating