forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4599521
committed
Here is another patch that fixes a stack of pg_dump bugs:
* Fix help text ordering* Add back --set-session-authorization to pg_dumpall. Updated the docsfor that. Updated help for that.* Dump ALTER USER commands for the cluster owner ("pgsql"). These aredumped AFTER the create user and create database commands in case thepermissions to do these have been revoked.* Dump ALTER OWNER for public schema (because it's possible to changeit). This was done by adding TOC entries for the public schema, andfiltering them out at archiver time. I also save the owner in the TOCentry just for the public schema.* Suppress dumping single quotes around schema_path and DateStyleoptions when they are set using ALTER USER or ALTER DATABASE. Added acomment to the steps in guc.c to remind people to update that list.* Fix dumping in --clean mode against a pre-7.3 server. It just setsall drop statements to assume the public schema, allowing it to restorewithout error.* Cleaned up text output. eg. Don't output -- Tablespaces comment ifthere are none. Same for groups and users.* Make the commands to DELETE FROM pg_shadow and DELETE FROM pg_grouponly be output when -c mode is enabled. I'm not sure why that hasn'tbeen done before?!?!This should be good for application asap, after which I will start onregression dumping 7.0-7.4 databases.Christopher Kings-Lynne1 parent465edca commit4599521
File tree
5 files changed
+104
-77
lines changed- doc/src/sgml/ref
- src
- backend/utils/misc
- bin/pg_dump
5 files changed
+104
-77
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
283 |
| - | |
284 |
| - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
285 | 287 |
| |
286 | 288 |
| |
287 | 289 |
| |
| 290 | + | |
288 | 291 |
| |
289 | 292 |
| |
290 | 293 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
335 | 335 |
| |
336 | 336 |
| |
337 | 337 |
| |
| 338 | + | |
| 339 | + | |
| 340 | + | |
338 | 341 |
| |
339 | 342 |
| |
340 | 343 |
| |
|
Lines changed: 14 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
2356 | 2356 |
| |
2357 | 2357 |
| |
2358 | 2358 |
| |
2359 |
| - | |
| 2359 | + | |
| 2360 | + | |
2360 | 2361 |
| |
2361 | 2362 |
| |
2362 | 2363 |
| |
| |||
2376 | 2377 |
| |
2377 | 2378 |
| |
2378 | 2379 |
| |
2379 |
| - | |
| 2380 | + | |
| 2381 | + | |
2380 | 2382 |
| |
2381 |
| - | |
2382 |
| - | |
2383 |
| - | |
2384 |
| - | |
2385 |
| - | |
2386 |
| - | |
2387 |
| - | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2388 | 2392 |
| |
2389 | 2393 |
| |
2390 | 2394 |
| |
|
Lines changed: 16 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
1492 | 1492 |
| |
1493 | 1493 |
| |
1494 | 1494 |
| |
1495 |
| - | |
| 1495 | + | |
1496 | 1496 |
| |
1497 | 1497 |
| |
1498 | 1498 |
| |
| |||
4381 | 4381 |
| |
4382 | 4382 |
| |
4383 | 4383 |
| |
4384 |
| - | |
4385 |
| - | |
4386 |
| - | |
4387 |
| - | |
4388 |
| - | |
4389 | 4384 |
| |
4390 | 4385 |
| |
4391 | 4386 |
| |
4392 | 4387 |
| |
4393 | 4388 |
| |
4394 | 4389 |
| |
4395 | 4390 |
| |
4396 |
| - | |
4397 |
| - | |
4398 |
| - | |
| 4391 | + | |
4399 | 4392 |
| |
4400 |
| - | |
4401 |
| - | |
| 4393 | + | |
| 4394 | + | |
4402 | 4395 |
| |
4403 |
| - | |
4404 |
| - | |
4405 |
| - | |
4406 |
| - | |
| 4396 | + | |
| 4397 | + | |
| 4398 | + | |
| 4399 | + | |
4407 | 4400 |
| |
4408 |
| - | |
| 4401 | + | |
4409 | 4402 |
| |
4410 |
| - | |
4411 |
| - | |
4412 |
| - | |
4413 |
| - | |
4414 |
| - | |
4415 |
| - | |
4416 |
| - | |
| 4403 | + | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
| 4408 | + | |
4417 | 4409 |
| |
4418 | 4410 |
| |
4419 | 4411 |
| |
|
Lines changed: 64 additions & 39 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
| 47 | + | |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| |||
257 | 257 |
| |
258 | 258 |
| |
259 | 259 |
| |
260 |
| - | |
| 260 | + | |
261 | 261 |
| |
262 | 262 |
| |
263 | 263 |
| |
| |||
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
282 |
| - | |
| 282 | + | |
| 283 | + | |
283 | 284 |
| |
284 | 285 |
| |
285 | 286 |
| |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
286 | 291 |
| |
287 | 292 |
| |
288 | 293 |
| |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 | 294 |
| |
293 |
| - | |
294 | 295 |
| |
295 | 296 |
| |
296 | 297 |
| |
| |||
310 | 311 |
| |
311 | 312 |
| |
312 | 313 |
| |
313 |
| - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
314 | 320 |
| |
315 | 321 |
| |
316 | 322 |
| |
317 | 323 |
| |
318 | 324 |
| |
319 |
| - | |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 | 325 |
| |
324 | 326 |
| |
325 |
| - | |
| 327 | + | |
| 328 | + | |
326 | 329 |
| |
327 | 330 |
| |
328 | 331 |
| |
329 | 332 |
| |
330 |
| - | |
331 |
| - | |
332 |
| - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
333 | 337 |
| |
334 | 338 |
| |
335 | 339 |
| |
| |||
344 | 348 |
| |
345 | 349 |
| |
346 | 350 |
| |
347 |
| - | |
| 351 | + | |
| 352 | + | |
348 | 353 |
| |
349 | 354 |
| |
350 |
| - | |
| 355 | + | |
351 | 356 |
| |
352 | 357 |
| |
353 | 358 |
| |
354 | 359 |
| |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 | 360 |
| |
359 | 361 |
| |
360 | 362 |
| |
361 |
| - | |
362 |
| - | |
363 |
| - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
364 | 366 |
| |
365 | 367 |
| |
366 | 368 |
| |
367 |
| - | |
368 |
| - | |
369 |
| - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
370 | 377 |
| |
371 | 378 |
| |
372 | 379 |
| |
373 |
| - | |
374 | 380 |
| |
375 |
| - | |
| 381 | + | |
| 382 | + | |
376 | 383 |
| |
377 |
| - | |
378 |
| - | |
379 |
| - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
380 | 397 |
| |
381 | 398 |
| |
382 | 399 |
| |
| |||
422 | 439 |
| |
423 | 440 |
| |
424 | 441 |
| |
425 |
| - | |
426 |
| - | |
427 |
| - | |
428 | 442 |
| |
429 | 443 |
| |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
430 | 449 |
| |
431 | 450 |
| |
432 | 451 |
| |
| |||
478 | 497 |
| |
479 | 498 |
| |
480 | 499 |
| |
481 |
| - | |
482 |
| - | |
483 | 500 |
| |
484 | 501 |
| |
485 | 502 |
| |
| |||
489 | 506 |
| |
490 | 507 |
| |
491 | 508 |
| |
| 509 | + | |
| 510 | + | |
| 511 | + | |
492 | 512 |
| |
493 | 513 |
| |
494 | 514 |
| |
| |||
758 | 778 |
| |
759 | 779 |
| |
760 | 780 |
| |
761 |
| - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
762 | 787 |
| |
763 | 788 |
| |
764 | 789 |
| |
|
0 commit comments
Comments
(0)