forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf9e439b
committed
Correctly handle owned sequences with extensions
With the refactoring of pg_dump to handle components, getOwnedSeqs needsto be a bit more intelligent regarding which components to dump when.Specifically, we can't simply use the owning table's components as theset of components to dump as the table might only be including certaincomponents while all components of the sequence should be dumped, forexample, when the table is a member of an extension while the sequenceis not.Handle this by combining the set of components to be dumped for thesequence explicitly and those to be dumped for the table when settingthe components to be dumped for the sequence.Also add a number of regression tests around this to, hopefully, catchany future changes which break the expected behavior.Discovered by: Philippe BEAUDOINReviewed by: Michael Paquier1 parent6335c80 commitf9e439b
File tree
4 files changed
+155
-9
lines changed- src
- bin/pg_dump
- t
- test/modules/test_pg_dump
- t
4 files changed
+155
-9
lines changedLines changed: 20 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6035 | 6035 |
| |
6036 | 6036 |
| |
6037 | 6037 |
| |
6038 |
| - | |
6039 |
| - | |
| 6038 | + | |
6040 | 6039 |
| |
6041 |
| - | |
6042 |
| - | |
| 6040 | + | |
| 6041 | + | |
| 6042 | + | |
| 6043 | + | |
| 6044 | + | |
| 6045 | + | |
| 6046 | + | |
| 6047 | + | |
| 6048 | + | |
| 6049 | + | |
| 6050 | + | |
| 6051 | + | |
| 6052 | + | |
| 6053 | + | |
| 6054 | + | |
| 6055 | + | |
| 6056 | + | |
| 6057 | + | |
6043 | 6058 |
| |
6044 |
| - | |
6045 |
| - | |
6046 | 6059 |
| |
6047 | 6060 |
| |
6048 | 6061 |
| |
| |||
16465 | 16478 |
| |
16466 | 16479 |
| |
16467 | 16480 |
| |
16468 |
| - | |
| 16481 | + | |
16469 | 16482 |
| |
16470 | 16483 |
| |
16471 | 16484 |
| |
|
Lines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 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 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
364 | 414 |
| |
365 | 415 |
| |
366 | 416 |
| |
|
Lines changed: 80 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
226 | 268 |
| |
227 | 269 |
| |
228 | 270 |
| |
229 |
| - | |
| 271 | + | |
230 | 272 |
| |
231 | 273 |
| |
232 | 274 |
| |
| |||
331 | 373 |
| |
332 | 374 |
| |
333 | 375 |
| |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
334 | 413 |
| |
335 | 414 |
| |
336 | 415 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 |
| |
12 | 16 |
| |
13 | 17 |
| |
|
0 commit comments
Comments
(0)