Issue #23741:ensure no duplicate check numbers

Is this an old pg syntax? Never seen this.