Commit 78d7256
committed
Fix CreatePolicy, pg_dump -v; psql and doc updates
Peter G pointed out that valgrind was, rightfully, complaining about
CreatePolicy() ending up copying beyond the end of the parsed policy
name. Name is a fixed-size type and we need to use namein (through
DirectFunctionCall1()) to flush out the entire array before we pass
it down to heap_form_tuple.
Michael Paquier pointed out that pg_dump --verbose was missing a
newline and Fabrízio de Royes Mello further pointed out that the
schema was also missing from the messages, so fix those also.
Also, based on an off-list comment from Kevin, rework the psql \d
output to facilitate copy/pasting into a new CREATE or ALTER POLICY
command.
Lastly, improve the pg_policies view and update the documentation for
it, along with a few other minor doc corrections based on an off-list
discussion with Adam Brightwell.1 parent 5968570 commit 78d7256
File tree
6 files changed
+122
-27
lines changed- doc/src/sgml
- src
- backend
- catalog
- commands
- bin
- pg_dump
- psql
- test/regress/expected
6 files changed
+122
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5396 | 5396 | | |
5397 | 5397 | | |
5398 | 5398 | | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
5399 | 5406 | | |
5400 | 5407 | | |
5401 | 5408 | | |
| |||
5417 | 5424 | | |
5418 | 5425 | | |
5419 | 5426 | | |
5420 | | - | |
5421 | | - | |
| 5427 | + | |
| 5428 | + | |
5422 | 5429 | | |
5423 | 5430 | | |
5424 | 5431 | | |
| |||
7299 | 7306 | | |
7300 | 7307 | | |
7301 | 7308 | | |
| 7309 | + | |
| 7310 | + | |
| 7311 | + | |
| 7312 | + | |
| 7313 | + | |
7302 | 7314 | | |
7303 | 7315 | | |
7304 | 7316 | | |
| |||
8146 | 8158 | | |
8147 | 8159 | | |
8148 | 8160 | | |
| 8161 | + | |
| 8162 | + | |
| 8163 | + | |
| 8164 | + | |
| 8165 | + | |
| 8166 | + | |
| 8167 | + | |
| 8168 | + | |
| 8169 | + | |
| 8170 | + | |
| 8171 | + | |
| 8172 | + | |
| 8173 | + | |
| 8174 | + | |
| 8175 | + | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
| 8185 | + | |
| 8186 | + | |
| 8187 | + | |
| 8188 | + | |
| 8189 | + | |
| 8190 | + | |
| 8191 | + | |
| 8192 | + | |
| 8193 | + | |
| 8194 | + | |
| 8195 | + | |
| 8196 | + | |
| 8197 | + | |
| 8198 | + | |
| 8199 | + | |
| 8200 | + | |
| 8201 | + | |
| 8202 | + | |
| 8203 | + | |
| 8204 | + | |
| 8205 | + | |
| 8206 | + | |
| 8207 | + | |
| 8208 | + | |
| 8209 | + | |
| 8210 | + | |
| 8211 | + | |
| 8212 | + | |
| 8213 | + | |
| 8214 | + | |
| 8215 | + | |
| 8216 | + | |
| 8217 | + | |
| 8218 | + | |
| 8219 | + | |
| 8220 | + | |
| 8221 | + | |
| 8222 | + | |
| 8223 | + | |
| 8224 | + | |
| 8225 | + | |
| 8226 | + | |
| 8227 | + | |
| 8228 | + | |
| 8229 | + | |
| 8230 | + | |
| 8231 | + | |
| 8232 | + | |
| 8233 | + | |
| 8234 | + | |
| 8235 | + | |
8149 | 8236 | | |
8150 | 8237 | | |
8151 | 8238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | | - | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
82 | | - | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2803 | 2803 | | |
2804 | 2804 | | |
2805 | 2805 | | |
2806 | | - | |
| 2806 | + | |
| 2807 | + | |
2807 | 2808 | | |
2808 | 2809 | | |
2809 | 2810 | | |
| |||
2833 | 2834 | | |
2834 | 2835 | | |
2835 | 2836 | | |
2836 | | - | |
| 2837 | + | |
| 2838 | + | |
2837 | 2839 | | |
2838 | 2840 | | |
2839 | 2841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
2014 | | - | |
| 2014 | + | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | | - | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
2018 | 2023 | | |
2019 | 2024 | | |
2020 | 2025 | | |
| |||
2046 | 2051 | | |
2047 | 2052 | | |
2048 | 2053 | | |
2049 | | - | |
| 2054 | + | |
2050 | 2055 | | |
2051 | 2056 | | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
2052 | 2063 | | |
2053 | | - | |
| 2064 | + | |
2054 | 2065 | | |
2055 | 2066 | | |
2056 | 2067 | | |
2057 | | - | |
| 2068 | + | |
2058 | 2069 | | |
2059 | 2070 | | |
2060 | 2071 | | |
2061 | 2072 | | |
2062 | | - | |
2063 | | - | |
2064 | | - | |
2065 | | - | |
2066 | | - | |
2067 | | - | |
2068 | | - | |
2069 | 2073 | | |
2070 | 2074 | | |
2071 | 2075 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
1360 | 1359 | | |
1361 | 1360 | | |
1362 | 1361 | | |
| |||
1377 | 1376 | | |
1378 | 1377 | | |
1379 | 1378 | | |
1380 | | - | |
1381 | | - | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
| |||
0 commit comments