forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit23f34fa
committed
In pg_dump, include pg_catalog and extension ACLs, if changed
Now that all of the infrastructure exists, add in the ability todump out the ACLs of the objects inside of pg_catalog or the ACLsfor objects which are members of extensions, but only if they havebeen changed from their original values.The original values are tracked in pg_init_privs. When pg_dump'ing9.6-and-above databases, we will dump out the ACLs for all objectsin pg_catalog and the ACLs for all extension members, where the ACLhas been changed from the original value which was set during eitherinitdb or CREATE EXTENSION.This should not change dumps against pre-9.6 databases.Reviews by Alexander Korotkov, Jose Luis Tallon1 parentd217b2c commit23f34fa
File tree
15 files changed
+1268
-209
lines changed- doc/src/sgml
- src
- backend
- catalog
- utils/adt
- bin
- initdb
- pg_dump
- include/catalog
- test/regress
- expected
- sql
15 files changed
+1268
-209
lines changedLines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
338 | 338 |
| |
339 | 339 |
| |
340 | 340 |
| |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
341 | 362 |
| |
342 | 363 |
| |
343 | 364 |
| |
|
Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
| |||
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 |
| |
89 | 96 |
| |
90 | 97 |
| |
| |||
5237 | 5244 |
| |
5238 | 5245 |
| |
5239 | 5246 |
| |
5240 |
| - | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
| 5250 | + | |
| 5251 | + | |
| 5252 | + | |
| 5253 | + | |
| 5254 | + | |
| 5255 | + | |
5241 | 5256 |
| |
5242 | 5257 |
| |
5243 | 5258 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| |||
193 | 194 |
| |
194 | 195 |
| |
195 | 196 |
| |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + |
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2002 | 2002 |
| |
2003 | 2003 |
| |
2004 | 2004 |
| |
2005 |
| - | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
2006 | 2010 |
| |
2007 | 2011 |
| |
2008 | 2012 |
| |
|
0 commit comments
Comments
(0)