forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6e951bf
committed
Group more closely cache updates for backends in sequence.c
Information of sequences is cached for each backend for currval() andnextval(), and the update of some cached information was mixed in themiddle of computations based on the other properties of a sequence, forthe increment value in nextval() and the cached state when altering asequence.Grouping them makes the code easier to follow and to refactor in thefuture, when splitting the computation and the SeqTable change parts.Note that the cached data is untouched between the areas where thesecache updates are moved.Issue noticed while doing some refactoring of the sequence code.Author: Michael PaquierReviewed-by: Tomas VondraDiscussion:https://postgr.es/m/ZWlohtKAs0uVVpZ3@paquier.xyz1 parent449e798 commit6e951bf
1 file changed
+5
-5
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
489 | 489 |
| |
490 | 490 |
| |
491 | 491 |
| |
492 |
| - | |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 | 492 |
| |
497 | 493 |
| |
498 | 494 |
| |
| |||
520 | 516 |
| |
521 | 517 |
| |
522 | 518 |
| |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
| |||
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
686 |
| - | |
687 | 686 |
| |
688 | 687 |
| |
689 | 688 |
| |
| |||
781 | 780 |
| |
782 | 781 |
| |
783 | 782 |
| |
| 783 | + | |
784 | 784 |
| |
785 | 785 |
| |
786 | 786 |
| |
|
0 commit comments
Comments
(0)