forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf713ff7
committed
Fix pg_dump for GRANT OPTION among initial privileges.
The context is an object that no longer bears some aclitem that it boreinitially. (A user issued REVOKE or GRANT statements upon the object.)pg_dump is forming SQL to reproduce the object ACL. Since initdbcreates no ACL bearing GRANT OPTION, reaching this bug requires anextension where the creation script establishes such an ACL. No PGXNextension does that. If an installation did reach the bug, pg_dumpwould have omitted a semicolon, causing a REVOKE and the next SQLstatement to fail. Separately, since the affected code exists toeliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANTOPTION FOR. Back-patch to 9.6, where commit23f34fa first appeared.Discussion:https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com1 parent6db9928 commitf713ff7
File tree
3 files changed
+70
-39
lines changed- src
- bin/pg_dump
- test/modules/test_pg_dump
- t
3 files changed
+70
-39
lines changedLines changed: 22 additions & 39 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 |
| - | |
| 171 | + | |
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
177 |
| - | |
| 177 | + | |
178 | 178 |
| |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
213 | 193 |
| |
214 | 194 |
| |
215 | 195 |
| |
| |||
462 | 442 |
| |
463 | 443 |
| |
464 | 444 |
| |
465 |
| - | |
466 |
| - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
467 | 450 |
| |
468 | 451 |
| |
469 | 452 |
| |
| |||
514 | 497 |
| |
515 | 498 |
| |
516 | 499 |
| |
517 |
| - | |
| 500 | + | |
518 | 501 |
| |
519 | 502 |
| |
520 | 503 |
| |
|
Lines changed: 39 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
351 | 390 |
| |
352 | 391 |
| |
353 | 392 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 |
| |
32 | 41 |
| |
33 | 42 |
| |
|
0 commit comments
Comments
(0)