forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8c8ba6d
committed
Add comment on why pulling data from a "name" index column can't crash.
It's been bothering me for several days that pretending that the cstringdata stored in a btree name_ops column is really a "name" Datum could leadto reading past the end of memory. However, given the current memorylayout used for index-only scans in the btree code, a crash is in fact notpossible. Document that so we don't break it. I have not thought of anyother solutions that aren't fairly ugly too, and most of them lose thefunctionality of index-only scans on name columns altogether, so this seemslike the way to go.1 parentcb6771f commit8c8ba6d
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
433 | 433 |
| |
434 | 434 |
| |
435 | 435 |
| |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
436 | 446 |
| |
437 | 447 |
| |
438 | 448 |
| |
|
0 commit comments
Comments
(0)