forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd272ca
committed
Mega-commit to make heap_open/heap_openr/heap_close take an
additional argument specifying the kind of lock to acquire/release (or'NoLock' to do no lock processing). Ensure that all relations are lockedwith some appropriate lock level before being examined --- this ensuresthat relevant shared-inval messages have been processed and should preventproblems caused by concurrent VACUUM. Fix several bugs having to do withmismatched increment/decrement of relation ref count and mismatchedheap_open/close (which amounts to the same thing). A bogus ref count ona relation doesn't matter much *unless* a SI Inval message happens toarrive at the wrong time, which is probably why we got away with thissloppiness for so long. Repair missing grab of AccessExclusiveLock inDROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi.Recommend 'make clean all' after pulling this update; I modified theRelation struct layout slightly.Will post further discussion to pghackers list shortly.1 parent6c86fd5 commitbd272ca
File tree
70 files changed
+1095
-1216
lines changed- contrib/miscutil
- src
- backend
- access
- gist
- hash
- heap
- index
- nbtree
- rtree
- transam
- bootstrap
- catalog
- commands
- executor
- optimizer
- path
- plan
- util
- parser
- rewrite
- storage
- buffer
- large_object
- lmgr
- tcop
- utils
- adt
- cache
- fmgr
- misc
- include
- access
- storage
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
70 files changed
+1095
-1216
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 116 | | |
122 | 117 | | |
123 | 118 | | |
124 | | - | |
125 | | - | |
| 119 | + | |
126 | 120 | | |
127 | 121 | | |
128 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
281 | 282 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 283 | + | |
292 | 284 | | |
293 | | - | |
294 | | - | |
295 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
232 | 230 | | |
233 | 231 | | |
234 | 232 | | |
235 | | - | |
| 233 | + | |
236 | 234 | | |
237 | 235 | | |
238 | | - | |
| 236 | + | |
239 | 237 | | |
| 238 | + | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
491 | 494 | | |
492 | 495 | | |
493 | 496 | | |
494 | | - | |
| 497 | + | |
495 | 498 | | |
496 | 499 | | |
497 | 500 | | |
| 501 | + | |
| 502 | + | |
498 | 503 | | |
499 | 504 | | |
500 | 505 | | |
501 | 506 | | |
502 | 507 | | |
503 | 508 | | |
504 | 509 | | |
505 | | - | |
| 510 | + | |
| 511 | + | |
506 | 512 | | |
| 513 | + | |
507 | 514 | | |
508 | 515 | | |
509 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
510 | 525 | | |
511 | 526 | | |
512 | 527 | | |
513 | 528 | | |
514 | 529 | | |
515 | 530 | | |
516 | | - | |
517 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
518 | 536 | | |
519 | 537 | | |
520 | 538 | | |
521 | | - | |
| 539 | + | |
522 | 540 | | |
523 | 541 | | |
524 | 542 | | |
| 543 | + | |
| 544 | + | |
525 | 545 | | |
526 | 546 | | |
527 | 547 | | |
528 | 548 | | |
529 | 549 | | |
530 | 550 | | |
531 | 551 | | |
| 552 | + | |
532 | 553 | | |
533 | 554 | | |
| 555 | + | |
534 | 556 | | |
535 | 557 | | |
536 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
537 | 567 | | |
538 | 568 | | |
539 | 569 | | |
540 | 570 | | |
541 | 571 | | |
542 | 572 | | |
543 | | - | |
544 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
545 | 576 | | |
546 | 577 | | |
547 | 578 | | |
548 | | - | |
| 579 | + | |
549 | 580 | | |
| 581 | + | |
| 582 | + | |
550 | 583 | | |
551 | 584 | | |
552 | 585 | | |
553 | 586 | | |
554 | 587 | | |
555 | 588 | | |
556 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
557 | 594 | | |
558 | 595 | | |
559 | 596 | | |
| |||
582 | 619 | | |
583 | 620 | | |
584 | 621 | | |
585 | | - | |
| 622 | + | |
586 | 623 | | |
587 | 624 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | 625 | | |
595 | 626 | | |
596 | 627 | | |
597 | 628 | | |
598 | 629 | | |
599 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
600 | 645 | | |
601 | 646 | | |
602 | 647 | | |
| |||
683 | 728 | | |
684 | 729 | | |
685 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
686 | 737 | | |
687 | 738 | | |
688 | 739 | | |
689 | 740 | | |
690 | 741 | | |
691 | 742 | | |
692 | | - | |
693 | | - | |
694 | | - | |
| 743 | + | |
695 | 744 | | |
696 | 745 | | |
697 | 746 | | |
| |||
0 commit comments
Comments
(0)