6.893 Architecture of Database Systems
Term Project

Ben Leong
benleong@mit.edu

The Problem - Abstract Data Type Exercise

Implement an abstract data type in POSTGRES that supports "Wall Street Trading Date" (WSTD). This data type is represented externally as a pair (year, integer); for example, (2002, 3) represents the third trading day of 2002 (which I believe is Jan 4th). When, year is not specified, the default is the current year, so 3 represents January 4, 2002. Choose some reasonable internal representation for the WSTD data type and implement the following operations: In addition, POSTGRES should be taught how to construct B-tree indexes on the WSTD type and the optimizer should be taught how to utilize the resulting indexes.

My Solution

I have completed the above project using PostgreSQL 7.1.3 running on a RedHat 7.2 Linux system with kernel version 2.4.9-6. Please click here to see my solution. Have a nice day!