लजिकल रेप्लिकेशन डाटा परिवर्तनहरू विशेष टेबलहरूको स्तरमा रेप्लिकेट गर्छ (publish/subscribe मडेल प्रयोग गरेर), बरु पूरै डाटाबेस क्लस्टरलाई बाइट-दर-बाइट प्रतिलिपि गर्नुको सट्टा जस्तै फिजिकल (streaming) रेप्लिकेशनमा। यसले यसलाई लचकदार बनाउँछ — चयनात्मक, क्रस-संस्करण, र विभिन्न स्कीमाहरूमा — माइग्रेसन र इन्टिग्रेसनको लागि आदर्श।
लजिकल बनाम फिजिकल रेप्लिकेशन
PHYSICAL (streaming) → replicates the ENTIRE cluster at the storage/WAL level
✓ exact copy, simple ✗ all-or-nothing, same Postgres version, read-only replica
LOGICAL → replicates specific TABLES' changes via a publish/subscribe model
✓ SELECTIVE (choose tables), CROSS-VERSION, to DIFFERENT schemas, replica is WRITABLE
✗ more setup, some limitations (DDL not replicated automatically, etc.)
