pgsql: Fix DROP ROLE when specifying duplicated roles

2024-01-28 Thread Michael Paquier
Fix DROP ROLE when specifying duplicated roles This commit fixes failures with "tuple already updated by self" when listing twice the same role and in a DROP ROLE query. This is an oversight in 6566133c5f52, that has introduced a two-phase logic in DropRole() where dependencies of all the roles t

pgsql: Fix DROP ROLE when specifying duplicated roles

2024-01-28 Thread Michael Paquier
Fix DROP ROLE when specifying duplicated roles This commit fixes failures with "tuple already updated by self" when listing twice the same role and in a DROP ROLE query. This is an oversight in 6566133c5f52, that has introduced a two-phase logic in DropRole() where dependencies of all the roles t