forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb2edbbd
committed
Fix oversight in commitb5415e3.
While rearranging code in tidpath.c, I overlooked the fact that we oughtto check restriction_is_securely_promotable when trying to use a joinclause as a TID qual. Since tideq itself is leakproof, this wouldn'treally allow any interesting leak AFAICT, but it still seems like wehad better check it.For consistency with the corresponding logic in indxpath.c, alsocheck rinfo->pseudoconstant. I'm not sure right now that it'spossible for that to be set in a join clause, but if it were,a match couldn't be made anyway.1 parent60d9979 commitb2edbbd
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
329 | 329 |
| |
330 | 330 |
| |
331 | 331 |
| |
332 |
| - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
333 | 336 |
| |
334 |
| - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
335 | 340 |
| |
336 | 341 |
| |
337 | 342 |
| |
|
0 commit comments
Comments
(0)