- Notifications
You must be signed in to change notification settings - Fork5
Commitb41f4ab
committed
Use a private memory context to store rule information in each relcache
entry that has rules. This allows us to release the rule parsetreeson relcache flush without needing a working freeObject() routine.Formerly, the rule trees were leaked permanently at relcache flush.Also, clean up handling of rule creation and deletion --- there wasnot sufficient locking of the relation being modified, and there wasno reliable notification of other backends that a relcache reloadwas needed. Also, clean up relcache.c code so that scans of systemtables needed to load a relcache entry are done in the caller'smemory context, not in CacheMemoryContext. This prevents anyun-pfreed memory from those scans from becoming a permanent memoryleak.1 parentc9ec78a commitb41f4ab
File tree
10 files changed
+345
-516
lines changed- src
- backend
- catalog
- commands
- rewrite
- utils/cache
- include
- catalog
- rewrite
- utils
10 files changed
+345
-516
lines changedLines changed: 15 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
369 | 369 |
| |
370 | 370 |
| |
371 | 371 |
| |
372 |
| - | |
| 372 | + | |
| 373 | + | |
373 | 374 |
| |
374 |
| - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
375 | 378 |
| |
376 |
| - | |
377 |
| - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
378 | 382 |
| |
379 | 383 |
| |
380 | 384 |
| |
381 |
| - | |
| 385 | + | |
| 386 | + | |
382 | 387 |
| |
383 | 388 |
| |
384 | 389 |
| |
| |||
415 | 420 |
| |
416 | 421 |
| |
417 | 422 |
| |
418 |
| - | |
| 423 | + | |
419 | 424 |
| |
420 | 425 |
| |
421 |
| - | |
| 426 | + | |
422 | 427 |
| |
423 | 428 |
| |
424 | 429 |
| |
| |||
434 | 439 |
| |
435 | 440 |
| |
436 | 441 |
| |
437 |
| - | |
438 |
| - | |
439 |
| - | |
440 |
| - | |
441 |
| - | |
442 |
| - | |
443 |
| - | |
444 |
| - | |
445 |
| - | |
446 |
| - | |
447 |
| - | |
448 |
| - | |
449 |
| - | |
450 |
| - | |
451 |
| - | |
452 |
| - | |
| 442 | + | |
| 443 | + | |
453 | 444 |
| |
454 | 445 |
| |
455 | 446 |
| |
|
Lines changed: 33 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
431 | 431 |
| |
432 | 432 |
| |
433 | 433 |
| |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
434 | 441 |
| |
435 | 442 |
| |
436 | 443 |
| |
437 |
| - | |
| 444 | + | |
438 | 445 |
| |
439 | 446 |
| |
440 | 447 |
| |
| |||
453 | 460 |
| |
454 | 461 |
| |
455 | 462 |
| |
| 463 | + | |
| 464 | + | |
456 | 465 |
| |
457 | 466 |
| |
458 | 467 |
| |
| |||
499 | 508 |
| |
500 | 509 |
| |
501 | 510 |
| |
502 |
| - | |
| 511 | + | |
| 512 | + | |
503 | 513 |
| |
504 |
| - | |
| 514 | + | |
| 515 | + | |
505 | 516 |
| |
506 | 517 |
| |
507 | 518 |
| |
508 |
| - | |
| 519 | + | |
| 520 | + | |
509 | 521 |
| |
510 | 522 |
| |
511 | 523 |
| |
| |||
514 | 526 |
| |
515 | 527 |
| |
516 | 528 |
| |
517 |
| - | |
| 529 | + | |
| 530 | + | |
518 | 531 |
| |
519 | 532 |
| |
520 | 533 |
| |
| |||
533 | 546 |
| |
534 | 547 |
| |
535 | 548 |
| |
536 |
| - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
537 | 552 |
| |
538 | 553 |
| |
539 |
| - | |
| 554 | + | |
| 555 | + | |
540 | 556 |
| |
541 | 557 |
| |
542 | 558 |
| |
| |||
611 | 627 |
| |
612 | 628 |
| |
613 | 629 |
| |
614 |
| - | |
| 630 | + | |
| 631 | + | |
615 | 632 |
| |
616 | 633 |
| |
617 | 634 |
| |
| |||
623 | 640 |
| |
624 | 641 |
| |
625 | 642 |
| |
626 |
| - | |
| 643 | + | |
| 644 | + | |
627 | 645 |
| |
628 | 646 |
| |
629 | 647 |
| |
| |||
635 | 653 |
| |
636 | 654 |
| |
637 | 655 |
| |
638 |
| - | |
| 656 | + | |
| 657 | + | |
639 | 658 |
| |
640 | 659 |
| |
641 | 660 |
| |
| |||
1023 | 1042 |
| |
1024 | 1043 |
| |
1025 | 1044 |
| |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
1029 |
| - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1030 | 1048 |
| |
1031 | 1049 |
| |
1032 | 1050 |
| |
|
0 commit comments
Comments
(0)