Restoring from backup failed with ERROR: must be superuser to create an operator family

I would extract the dump.sql file from the backup, comment out the line/s that is/are creating an operator family and overwrite the dump.sql file back in the backup.