Here are some class notes that contain some very good ideas with terrific explanations: http://www.cs.duke.edu/education/courses/fall01/cps216/
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных