- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit5da8bf8
committed
Avoid CREATE INDEX unique index deduplication.
There is no advantage to attempting deduplication for a unique indexduring CREATE INDEX, since there cannot possibly be any duplicates.Doing so wastes cycles due to unnecessary copying. Make sure that weavoid it consistently.We already avoided unique index deduplication in the case where therewere some spool2 tuples to merge. That didn't account for the fact thatspool2 is removed early/unset in the common case where it has no tuplesthat need to be merged (i.e. it failed to account for the "spool2 turnsout to be unnecessary" optimization in _bt_spools_heapscan()).Oversight in commit0d861bb, which added nbtree deduplicationBackpatch: 13-, where nbtree deduplication was introduced.1 parent7fe3083 commit5da8bf8
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1192 | 1192 |
| |
1193 | 1193 |
| |
1194 | 1194 |
| |
1195 |
| - | |
| 1195 | + | |
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
|
0 commit comments
Comments
(0)