انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-018-L06

عرض عملي: الاستعادة إلى ما قبل DELETE خاطئ بخمس دقائق

  • الدرس 6 من 6
  • Mid-level
في هذا الدرس 3 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

perform a PITR end to end.

تفاصيل المخطط المبدئي

خطوة بخطوة

  1. Enable WAL archiving and take a base backup; write down the time.
  2. Run workload, note a safe timestamp, then run DELETE FROM orders without a WHERE clause.
  3. Stop the server and move the damaged data directory aside; restore the base backup.
  4. Set recovery_target_time to five minutes before the delete, create recovery.signal, and start.
  5. Planned mistake: target a time after the delete; the rows are gone again. Fix: choose an earlier target and repeat.
  6. Verify row counts, promote, and record the elapsed recovery time.

Prepares MID-018-LAB1.

اختبر فهمك

Why recover to a time before the delete rather than after?

أظهر الإجابة

Replay stops at the target, so the delete is never applied.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.