forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita2a475b
committed
Replace get_equal_strategy_number_for_am() by get_equal_strategy_number()
get_equal_strategy_number_for_am() gets the equal strategy number foran AM. This currently only supports btree and hash. In the moregeneral case, this also depends on the operator class (see for exampleGistTranslateStratnum()). To support that, replace this function withget_equal_strategy_number() that takes an opclass and derives it fromthere. (This function already existed before as a static function, sothe signature is kept for simplicity.)This patch is only a refactoring, it doesn't add support for otherindex AMs such as gist. This will be done separately.Reviewed-by: Paul Jungwirth <pj@illuminatedcomputing.com>Reviewed-by: vignesh C <vignesh21@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/CA+renyUApHgSZF9-nd-a0+OPGharLQLO=mDHcY4_qQ0+noCUVg@mail.gmail.com1 parent321c287 commita2a475b
File tree
3 files changed
+18
-20
lines changed- src
- backend
- executor
- replication/logical
- include/executor
3 files changed
+18
-20
lines changedLines changed: 3 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
51 | 51 |
| |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
| |||
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 | 72 |
| |
84 | 73 |
| |
85 | 74 |
| |
|
Lines changed: 14 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| |||
815 | 816 |
| |
816 | 817 |
| |
817 | 818 |
| |
818 |
| - | |
| 819 | + | |
819 | 820 |
| |
820 | 821 |
| |
821 | 822 |
| |
| |||
833 | 834 |
| |
834 | 835 |
| |
835 | 836 |
| |
836 |
| - | |
837 |
| - | |
838 |
| - | |
839 |
| - | |
| 837 | + | |
840 | 838 |
| |
841 | 839 |
| |
842 | 840 |
| |
843 | 841 |
| |
844 | 842 |
| |
845 | 843 |
| |
846 | 844 |
| |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
847 | 856 |
| |
848 | 857 |
| |
849 | 858 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
657 | 657 |
| |
658 | 658 |
| |
659 | 659 |
| |
660 |
| - | |
| 660 | + | |
661 | 661 |
| |
662 | 662 |
| |
663 | 663 |
| |
|
0 commit comments
Comments
(0)