psql_magic_use_1st_on_duplicate flag introduced. if 1 then use the 1st table in case of multiple matches