[prev] 10 [next]

Assignment 1

Aim: add a new base data type to PostgreSQL
  • PersonName type, with literals like 'Shepherd,John'
  • parse literals to canonical internal form, display them
  • BNF grammar defines what strings are valid PersonNames
  • stored tuples may not be fixed-size (e.g. not simply 256)
  • implement operations like equality and ordering tests
  • provide for PersonNames to be used in indexes

Hint: User-defined Types, Section 37.13 in PostgreSQL Docs

Testing data and testing framework available soon

Note: complex.* only gives you a rough sketch (e.g. fixed-size)