As for the specific btree file, once you have the postgres source code wither from tar.gz or git, you should find it at /postgresql/src/backend/access/nbtree/nbtree.c
Payal Singh, OmniTi Computer Consulting Inc. Junior Database Architect, Phone: 240.646.0770 x 253