Dear All, Thanks for your support. I am using postgresql 9.3.6 rpm in RHEL6 version. In postgresql logs, I have found below error messages. ERROR: null value in column "column name" violates not-null constraint. Second error found: ERROR: there is no unique constraint matching given keys for referenced table "table2" alter table1 table_name add constraint fk_key foreign key (id, phone_id) references table2 (id, phone_id) on delete restrict on update restrict; Could you please share the details of these errors and how to resolve these errors from logs. Regards, Yogesh -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general