Repository navigation
RDSC-6238: Clarify PostgreSQL publication safety for RDI and Redis Cloud - #4273
ZdravkoDonev-redis wants to merge 5 commits into
Conversation
🧠 Redis MemoryFound 11 related items from repository history (2 new this commit):
Memory updated at 01a1a43 |
|
Waiting on comments/approval from @ilianiliev-redis |
|
The replica identity preflight query is corrected in 01a1a43 on both current and 1.19.1 pages. It now checks that the primary or replica-identity index is live, valid, unique, immediate, and has no predicate. A deferrable primary key is therefore reported instead of being treated as a usable identity. The guidance calls this out explicitly. The index rules were checked against PostgreSQL 16 RelationGetIndexList. Static diff checks passed; the SQL additions match between both page versions. Live SQL and Cloud qualification remain deferred, so this is not a runtime sign-off. Related implementation is kept separate in RDSC-6238 / core RDI #2905. Remaining Aurora grant and networking corrections are separate drafts #4293 and #4294, under RDSC-6239. |
Related ticket: RDSC-6238. The product advisory is implemented separately in core RDI #2905.
PostgreSQL sources can publish tables outside the RDI table selection when a publication uses
FOR ALL TABLES. Application updates or deletes can then fail on published tables without replica identity, including tables RDI does not capture.Changes
publication.autocreate.mode: disabledin the Aurora/RDS preparation example. Explainfilteredas the alternative when RDI has publication-management permissions; keep the product default unchanged.filteredalone cannot convert an all-tables publication, and leaving the old broad publication in place retains its write restrictions.REPLICA IDENTITY FULLto child-table nesting. Explain old row values and unchanged TOAST values instead of saying PostgreSQL events contain only changed fields.Validation
Note
Low Risk
Documentation-only updates with no runtime or configuration code changes.
Overview
Documentation now explains how PostgreSQL logical replication publications interact with RDI table selection and why broad
FOR ALL TABLESpublications can break application writes on tables without replica identity.The PostgreSQL preparation guide gains a checklist step and a large new section on replica identity (diagnostic SQL, fixes, TOAST/old-row behavior),
publication.autocreate.mode(all_tables,filtered,disabled), admin-managed explicit publications, migrating off all-tables publications (coordination, slots/offsets), and a publication error FAQ. Aurora/RDS and Supabase examples switch fromFOR ALL TABLESto table-listrdi_publicationand point to collector/config.yamlsettings.Redis Cloud docs add a PostgreSQL publications section and clarify that console table selection and Redis keys do not change publication membership or PostgreSQL replica identity; quick start recommends
publication.autocreate.mode: filtered. Denormalization/nesting text is tightened and cross-linked for whenREPLICA IDENTITY FULLis required. Changes are mirrored in current and 1.19.1 RDI doc trees.Reviewed by Cursor Bugbot for commit 01a1a43. Bugbot is set up for automated code reviews on this repo. Configure here.