forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit941aa6a
committed
Check the snapshot argument of index_beginscan and family
Passing a NULL snapshot (InvalidSnapshot) is going to work but only as longas the index can't find any matching rows. This can be confusing forthe extension authors, so add an explicit check for this argument. The checkis implemented with Assert() in order to avoid overhead in release builds.Reported-by: Sven KlemmDiscussion:https://postgr.es/m/CAJ7c6TPxitD4vbKyP-mpmC1XwyHdPPqvjLzm%2BVpB88h8LGgneQ%40mail.gmail.comAuthor: Aleksander AlekseevReviewed-by: Pavel Borisov1 parenta7885c9 commit941aa6a
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
| 212 | + | |
| 213 | + | |
212 | 214 |
| |
213 | 215 |
| |
214 | 216 |
| |
| |||
237 | 239 |
| |
238 | 240 |
| |
239 | 241 |
| |
| 242 | + | |
| 243 | + | |
240 | 244 |
| |
241 | 245 |
| |
242 | 246 |
| |
| |||
403 | 407 |
| |
404 | 408 |
| |
405 | 409 |
| |
| 410 | + | |
| 411 | + | |
406 | 412 |
| |
407 | 413 |
| |
408 | 414 |
| |
| |||
437 | 443 |
| |
438 | 444 |
| |
439 | 445 |
| |
| 446 | + | |
| 447 | + | |
440 | 448 |
| |
441 | 449 |
| |
442 | 450 |
| |
|
0 commit comments
Comments
(0)