Hi,
PFA initial patch for foreign key constraint.
Note: This patch has dependency on Table, Column node and Index constraint.
-- *Harshal Dhumal**Software Engineer *
EenterpriseDB <http://www.enterprisedb.com>