>-----Original Message----- >From: Tom Lane >The correct fix is CommandCounterIncrement() in the DROP USER loop, >so that later iterations can see the changes made by prior iterations. > > regards, tom lane Since postgre now suppport referential integrity and cascading deletes, wouldn't it make more sense to use that code to manage the relationship between pg_user and pg_group (and probably a wealth of other system tables), rather then having to write specific code to manage every relationship between system tables, or are those types of constraints just not applicable to system tables?