PostgreSQL can't properly disable foreign key constraints when the PostgreSQL user is not superuser. Added a warning when ActiveRecord::InvalidForeignKey is throw to make the user aware about the issue.

Reference #17542