persistent-postgresql: Produce correct alter table statements for non-primary foreign references