forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c8f483
committed
Represent columns requiring insert and update privileges indentently.
Previously, relation range table entries used a single Bitmapset fieldrepresenting which columns required either UPDATE or INSERT privileges,despite the fact that INSERT and UPDATE privileges are separatelycataloged, and may be independently held. As statements so far requiredeither insert or update privileges but never both, that wassufficient. The required permission could be inferred from the top levelstatement run.The upcoming INSERT ... ON CONFLICT UPDATE feature needs toindependently check for both privileges in one statement though, so thatis not sufficient anymore.Bumps catversion as stored rules change.Author: Peter GeogheganReviewed-By: Andres Freund1 parentdb5f98a commit2c8f483
File tree
18 files changed
+192
-124
lines changed- contrib
- postgres_fdw
- sepgsql
- src
- backend
- commands
- executor
- nodes
- optimizer
- plan
- prep
- parser
- rewrite
- include
- catalog
- nodes
18 files changed
+192
-124
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1205 | 1205 |
| |
1206 | 1206 |
| |
1207 | 1207 |
| |
1208 |
| - | |
| 1208 | + | |
1209 | 1209 |
| |
1210 | 1210 |
| |
1211 | 1211 |
| |
|
Lines changed: 20 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 |
| - | |
| 148 | + | |
| 149 | + | |
149 | 150 |
| |
150 | 151 |
| |
151 | 152 |
| |
| |||
231 | 232 |
| |
232 | 233 |
| |
233 | 234 |
| |
234 |
| - | |
235 |
| - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
236 | 238 |
| |
237 | 239 |
| |
238 | 240 |
| |
| |||
241 | 243 |
| |
242 | 244 |
| |
243 | 245 |
| |
244 |
| - | |
| 246 | + | |
245 | 247 |
| |
246 |
| - | |
247 |
| - | |
248 | 248 |
| |
249 | 249 |
| |
250 | 250 |
| |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
251 | 256 |
| |
252 | 257 |
| |
253 | 258 |
| |
| |||
304 | 309 |
| |
305 | 310 |
| |
306 | 311 |
| |
307 |
| - | |
| 312 | + | |
308 | 313 |
| |
309 | 314 |
| |
310 | 315 |
| |
| |||
333 | 338 |
| |
334 | 339 |
| |
335 | 340 |
| |
336 |
| - | |
| 341 | + | |
| 342 | + | |
337 | 343 |
| |
338 | 344 |
| |
339 | 345 |
| |
340 | 346 |
| |
341 | 347 |
| |
342 | 348 |
| |
343 | 349 |
| |
344 |
| - | |
345 |
| - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
346 | 354 |
| |
347 | 355 |
| |
348 | 356 |
| |
349 | 357 |
| |
350 | 358 |
| |
351 | 359 |
| |
352 |
| - | |
| 360 | + | |
| 361 | + | |
353 | 362 |
| |
354 | 363 |
| |
355 | 364 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
847 | 847 |
| |
848 | 848 |
| |
849 | 849 |
| |
850 |
| - | |
| 850 | + | |
851 | 851 |
| |
852 | 852 |
| |
853 | 853 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
433 | 433 |
| |
434 | 434 |
| |
435 | 435 |
| |
436 |
| - | |
| 436 | + | |
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
|
Lines changed: 15 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 |
| |
74 |
| - | |
75 |
| - | |
| 74 | + | |
| 75 | + | |
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| |||
2347 | 2347 |
| |
2348 | 2348 |
| |
2349 | 2349 |
| |
2350 |
| - | |
| 2350 | + | |
2351 | 2351 |
| |
2352 | 2352 |
| |
2353 | 2353 |
| |
| |||
2356 | 2356 |
| |
2357 | 2357 |
| |
2358 | 2358 |
| |
2359 |
| - | |
| 2359 | + | |
2360 | 2360 |
| |
2361 | 2361 |
| |
2362 | 2362 |
| |
| |||
2377 | 2377 |
| |
2378 | 2378 |
| |
2379 | 2379 |
| |
2380 |
| - | |
| 2380 | + | |
2381 | 2381 |
| |
2382 | 2382 |
| |
2383 | 2383 |
| |
| |||
2402 | 2402 |
| |
2403 | 2403 |
| |
2404 | 2404 |
| |
2405 |
| - | |
| 2405 | + | |
2406 | 2406 |
| |
2407 | 2407 |
| |
2408 | 2408 |
| |
| |||
2420 | 2420 |
| |
2421 | 2421 |
| |
2422 | 2422 |
| |
2423 |
| - | |
| 2423 | + | |
2424 | 2424 |
| |
2425 | 2425 |
| |
2426 | 2426 |
| |
| |||
2429 | 2429 |
| |
2430 | 2430 |
| |
2431 | 2431 |
| |
2432 |
| - | |
| 2432 | + | |
2433 | 2433 |
| |
2434 | 2434 |
| |
2435 |
| - | |
| 2435 | + | |
2436 | 2436 |
| |
2437 | 2437 |
| |
2438 | 2438 |
| |
| |||
2486 | 2486 |
| |
2487 | 2487 |
| |
2488 | 2488 |
| |
2489 |
| - | |
| 2489 | + | |
2490 | 2490 |
| |
2491 | 2491 |
| |
2492 | 2492 |
| |
| |||
2556 | 2556 |
| |
2557 | 2557 |
| |
2558 | 2558 |
| |
2559 |
| - | |
| 2559 | + | |
2560 | 2560 |
| |
2561 | 2561 |
| |
2562 | 2562 |
| |
|
0 commit comments
Comments
(0)