This code is an extension to PostgreSQL for finding CAD features efficiently. Development of this code has been supported by the Marie Curie Initial Training Network INSIST, funded by the 7th EU Framework Programme (FP7) under grant agreement n° 289361.