Failures, Transactions, and Logging




CS157b

Chris Pollett

Apr 2, 2018

Outline

Introduction

An Overarching Goal

Possible Kind of Database Errors

Transactions

Jobs of the Transaction Manager

Correct Execution of Transactions

Converse of the Correctness Principle

Quiz

Which of the following statements is true?

  1. The main approach to enumerating physical plans we considered in class was bottom up.
  2. Selinger Plan Optimization and Branch and Bound Plan optimization are the same thing.
  3. Writing all the intermediate results of a query back to disk is called pipelining.

Primitive Operations of a Transaction

Undo Logging

Log Records

The Undo-Logging Rules

Recovering using Undo Logging