postgres fails on multiple primary keys