forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7f24c02
committed
Improve possible performance regression
Commitce62f2f introduced calls to GetIndexAmRoutineByAmId() inlsyscache.c functions. This call is a bit more expensive than asimple syscache lookup. So rearrange the nesting so that we call thatone last and do the cheaper checks first.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/E1tngY6-0000UL-2n%40gemulon.postgresql.org1 parentaf4002b commit7f24c02
1 file changed
+16
-6
lines changedLines changed: 16 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
717 | 717 |
| |
718 | 718 |
| |
719 | 719 |
| |
720 |
| - | |
721 | 720 |
| |
722 |
| - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
723 | 726 |
| |
724 |
| - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
725 | 730 |
| |
726 | 731 |
| |
727 | 732 |
| |
| |||
768 | 773 |
| |
769 | 774 |
| |
770 | 775 |
| |
771 |
| - | |
772 | 776 |
| |
773 |
| - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
774 | 782 |
| |
775 |
| - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
776 | 786 |
| |
777 | 787 |
| |
778 | 788 |
| |
|
0 commit comments
Comments
(0)