إصدارات الصفوف واللقطات
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
explain visibility using xmin, xmax, and snapshots.
الموضوعات المخطط لها
- Every row version (tuple) stores
xmin(transaction that created it) andxmax(transaction that deleted or replaced it). - A snapshot lists which transactions are committed from the viewpoint of a statement or transaction.
- A version is visible if its creator is committed in your snapshot and its deleter is not.
- Under
READ COMMITTEDa snapshot is taken per statement; underREPEATABLE READonce per transaction.
تفاصيل المخطط المبدئي
عرض عملي
SELECT xmin, xmax, ctid, * FROM product WHERE id = 1;Run before and after an update in another session; point at the changed xmin and ctid.
اختبر فهمك
What does xmax hold on a live row that nobody has touched?
أظهر الإجابة
Zero; no deleting transaction.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.