Implement check for Foreign Keys (cannot be Unlogged) and change 'relpersistence' from 'u' to 'p' for indexes of target relation