- Notifications
You must be signed in to change notification settings - Fork5
Commit143b39c
committed
Rename pg_rowsecurity -> pg_policy and other fixes
As pointed out by Robert, we should really have named pg_rowsecuritypg_policy, as the objects stored in that catalog are policies. Thispatch fixes that and updates the column names to start with 'pol' tomatch the new catalog name.The security consideration for COPY with row level security, alsopointed out by Robert, has also been addressed by remembering andre-checking the OID of the relation initially referenced during COPYprocessing, to make sure it hasn't changed under us by the time wefinish planning out the query which has been built.Robert and Alvaro also commented on missing OCLASS and OBJECT entriesfor POLICY (formerly ROWSECURITY or POLICY, depending) in variousplaces. This patch fixes that too, which also happens to add theability to COMMENT on policies.In passing, attempt to improve the consistency of messages, comments,and documentation as well. This removes various incarnations of'row-security', 'row-level security', 'Row-security', etc, in favorof 'policy', 'row level security' or 'row_security' as appropriate.Happy Thanksgiving!1 parent1812ee5 commit143b39c
File tree
47 files changed
+616
-545
lines changed- doc/src/sgml
- ref
- src
- backend
- catalog
- commands
- executor
- optimizer
- path
- plan
- parser
- rewrite
- utils/cache
- bin
- pg_dump
- psql
- include
- catalog
- nodes
- rewrite
- utils
- test/regress
- expected
- sql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+616
-545
lines changedLines changed: 22 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
239 | 239 |
| |
240 | 240 |
| |
241 | 241 |
| |
242 |
| - | |
243 |
| - | |
| 242 | + | |
| 243 | + | |
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
| |||
1944 | 1944 |
| |
1945 | 1945 |
| |
1946 | 1946 |
| |
1947 |
| - | |
1948 |
| - | |
| 1947 | + | |
| 1948 | + | |
1949 | 1949 |
| |
1950 | 1950 |
| |
1951 | 1951 |
| |
| |||
5342 | 5342 |
| |
5343 | 5343 |
| |
5344 | 5344 |
| |
5345 |
| - | |
5346 |
| - | |
| 5345 | + | |
| 5346 | + | |
5347 | 5347 |
| |
5348 |
| - | |
5349 |
| - | |
| 5348 | + | |
| 5349 | + | |
5350 | 5350 |
| |
5351 | 5351 |
| |
5352 | 5352 |
| |
5353 |
| - | |
| 5353 | + | |
5354 | 5354 |
| |
5355 | 5355 |
| |
5356 | 5356 |
| |
| |||
5361 | 5361 |
| |
5362 | 5362 |
| |
5363 | 5363 |
| |
5364 |
| - | |
| 5364 | + | |
5365 | 5365 |
| |
5366 | 5366 |
| |
5367 | 5367 |
| |
| |||
5375 | 5375 |
| |
5376 | 5376 |
| |
5377 | 5377 |
| |
5378 |
| - | |
| 5378 | + | |
5379 | 5379 |
| |
5380 | 5380 |
| |
5381 |
| - | |
| 5381 | + | |
5382 | 5382 |
| |
5383 | 5383 |
| |
5384 | 5384 |
| |
5385 |
| - | |
| 5385 | + | |
5386 | 5386 |
| |
5387 | 5387 |
| |
5388 |
| - | |
| 5388 | + | |
5389 | 5389 |
| |
5390 | 5390 |
| |
5391 | 5391 |
| |
5392 |
| - | |
| 5392 | + | |
5393 | 5393 |
| |
5394 | 5394 |
| |
5395 |
| - | |
| 5395 | + | |
5396 | 5396 |
| |
5397 | 5397 |
| |
5398 | 5398 |
| |
5399 |
| - | |
| 5399 | + | |
5400 | 5400 |
| |
5401 | 5401 |
| |
5402 |
| - | |
| 5402 | + | |
5403 | 5403 |
| |
5404 | 5404 |
| |
5405 | 5405 |
| |
5406 |
| - | |
| 5406 | + | |
5407 | 5407 |
| |
5408 | 5408 |
| |
5409 | 5409 |
| |
5410 | 5410 |
| |
5411 | 5411 |
| |
5412 | 5412 |
| |
5413 |
| - | |
| 5413 | + | |
5414 | 5414 |
| |
5415 | 5415 |
| |
5416 | 5416 |
| |
| |||
5423 | 5423 |
| |
5424 | 5424 |
| |
5425 | 5425 |
| |
5426 |
| - | |
5427 |
| - | |
| 5426 | + | |
| 5427 | + | |
5428 | 5428 |
| |
5429 | 5429 |
| |
5430 | 5430 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1558 | 1558 |
| |
1559 | 1559 |
| |
1560 | 1560 |
| |
1561 |
| - | |
1562 |
| - | |
| 1561 | + | |
| 1562 | + | |
1563 | 1563 |
| |
1564 | 1564 |
| |
1565 | 1565 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
| 37 | + | |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
|
Lines changed: 24 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
40 | 39 |
| |
41 | 40 |
| |
42 | 41 |
| |
43 |
| - | |
| 42 | + | |
44 | 43 |
| |
45 | 44 |
| |
46 | 45 |
| |
| |||
49 | 48 |
| |
50 | 49 |
| |
51 | 50 |
| |
52 |
| - | |
| 51 | + | |
53 | 52 |
| |
54 | 53 |
| |
55 | 54 |
| |
| |||
66 | 65 |
| |
67 | 66 |
| |
68 | 67 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
| |||
291 | 290 |
| |
292 | 291 |
| |
293 | 292 |
| |
294 |
| - | |
295 |
| - | |
| 293 | + | |
| 294 | + | |
296 | 295 |
| |
297 | 296 |
| |
298 | 297 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
84 |
| - | |
| 83 | + | |
| 84 | + | |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2133 | 2133 |
| |
2134 | 2134 |
| |
2135 | 2135 |
| |
2136 |
| - | |
| 2136 | + | |
2137 | 2137 |
| |
2138 | 2138 |
| |
2139 | 2139 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
|
Lines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 |
| - | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
| 159 | + | |
| 160 | + | |
160 | 161 |
| |
161 | 162 |
| |
162 | 163 |
| |
| |||
1251 | 1252 |
| |
1252 | 1253 |
| |
1253 | 1254 |
| |
1254 |
| - | |
| 1255 | + | |
1255 | 1256 |
| |
1256 | 1257 |
| |
1257 | 1258 |
| |
| |||
2361 | 2362 |
| |
2362 | 2363 |
| |
2363 | 2364 |
| |
2364 |
| - | |
2365 |
| - | |
| 2365 | + | |
| 2366 | + | |
2366 | 2367 |
| |
2367 | 2368 |
| |
2368 | 2369 |
| |
|
0 commit comments
Comments
(0)