Peter Geoghegan <pg(at)bowt(dot)ie> writes:
> Attached is v3, which implements your suggestion, generating output
> like the above. I haven't written a line of Perl in my life prior to
> today, so basic code review would be helpful.
The "if ($oid > $prev_oid + 2)" test seems unnecessary.
It's certainly wrong to keep iterating beyond the first
oid that's > $suggestion.
Perhaps you meant to go back and try a different suggestion
if there's not at least 2 free OIDs? But then there needs
to be an outer loop around both of these loops.
regards, tom lane