Hi Team,
I have resolved the issue in SQL statements to add foreign while creatingtable RM-5748 <https://redmine.postgresql.org/issues/5748>.PFA patch.
Regards,Nikhil Mohite.