* pathkeys_contained_in * Common special case of compare_pathkeys: we just want to know * if keys2 are at least as well sorted as keys1. */
| 650 | * if keys2 are at least as well sorted as keys1. |
| 651 | */ |
| 652 | bool |
| 653 | pathkeys_contained_in(List *keys1, List *keys2) |
| 654 | { |
| 655 | switch (compare_pathkeys(keys1, keys2)) |
| 656 | { |
| 657 | case PATHKEYS_EQUAL: |
| 658 | case PATHKEYS_BETTER2: |
| 659 | return true; |
| 660 | default: |
| 661 | break; |
| 662 | } |
| 663 | return false; |
| 664 | } |
| 665 | |
| 666 | /* |
| 667 | * pathkeys_count_contained_in |
no test coverage detected