ENع
الدرس 17 · Inside a database

Write-ahead logging and recovery

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A database changes pages in memory and writes them back later, so how does a commit survive a power cut? Follow two transactions through PostgreSQL's write-ahead log (WAL): every change is logged before its page may reach disk, COMMIT waits only for the log, and after a crash, replay from the last checkpoint brings back every committed change while the unfinished one stays invisible.

14 دقيقة10 خطوات5 أسئلةAdvanced
شكل 17 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.