forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit13b58f8
committed
Improve failure detection with array parsing in pg_dump
Similarly to3636efa, the checks done in pg_dump when parsing arrayvalues from catalogs have been too lax. Under memory pressure, it couldbe possible, though very unlikely, to finish with dumps that miss somedata like:- Statistics for indexes- Run-time configuration of functions- Configuration of extensions- Publication list for a subscriptionNo backpatch is done as this is not going to be a problem in practice.For example, if an OOM causes an array parsing to fail, a follow-up codepath of pg_dump would most likely complain with an allocation failuredue to the memory pressure.Author: Michael PaquierReviewed-by: Daniel GustafssonDiscussion:https://postgr.es/m/20201111061319.GE2276@paquier.xyz1 parent2783898 commit13b58f8
1 file changed
+27
-24
lines changedLines changed: 27 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4357 | 4357 |
| |
4358 | 4358 |
| |
4359 | 4359 |
| |
4360 |
| - | |
4361 |
| - | |
4362 |
| - | |
4363 |
| - | |
4364 |
| - | |
4365 |
| - | |
4366 |
| - | |
| 4360 | + | |
4367 | 4361 |
| |
4368 | 4362 |
| |
4369 | 4363 |
| |
| |||
12128 | 12122 |
| |
12129 | 12123 |
| |
12130 | 12124 |
| |
12131 |
| - | |
12132 |
| - | |
12133 |
| - | |
12134 |
| - | |
12135 |
| - | |
12136 |
| - | |
12137 |
| - | |
| 12125 | + | |
| 12126 | + | |
| 12127 | + | |
| 12128 | + | |
| 12129 | + | |
| 12130 | + | |
12138 | 12131 |
| |
12139 | 12132 |
| |
12140 | 12133 |
| |
| |||
16453 | 16446 |
| |
16454 | 16447 |
| |
16455 | 16448 |
| |
16456 |
| - | |
16457 |
| - | |
| 16449 | + | |
| 16450 | + | |
16458 | 16451 |
| |
16459 | 16452 |
| |
16460 | 16453 |
| |
| |||
16483 | 16476 |
| |
16484 | 16477 |
| |
16485 | 16478 |
| |
16486 |
| - | |
16487 |
| - | |
16488 |
| - | |
| 16479 | + | |
16489 | 16480 |
| |
16490 | 16481 |
| |
16491 | 16482 |
| |
| 16483 | + | |
| 16484 | + | |
| 16485 | + | |
| 16486 | + | |
| 16487 | + | |
| 16488 | + | |
| 16489 | + | |
16492 | 16490 |
| |
16493 | 16491 |
| |
16494 | 16492 |
| |
| |||
17938 | 17936 |
| |
17939 | 17937 |
| |
17940 | 17938 |
| |
17941 |
| - | |
17942 |
| - | |
| 17939 | + | |
| 17940 | + | |
17943 | 17941 |
| |
17944 |
| - | |
17945 |
| - | |
17946 |
| - | |
| 17942 | + | |
17947 | 17943 |
| |
17948 | 17944 |
| |
17949 | 17945 |
| |
| 17946 | + | |
| 17947 | + | |
| 17948 | + | |
| 17949 | + | |
| 17950 | + | |
| 17951 | + | |
| 17952 | + | |
17950 | 17953 |
| |
17951 | 17954 |
| |
17952 | 17955 |
| |
|
0 commit comments
Comments
(0)