MCPcopy Create free account
hub / github.com/apache/cloudberry / pathkeys_contained_in

Function pathkeys_contained_in

src/backend/optimizer/path/pathkeys.c:652–664  ·  view source on GitHub ↗

* pathkeys_contained_in * Common special case of compare_pathkeys: we just want to know * if keys2 are at least as well sorted as keys1. */

Source from the content-addressed store, hash-verified

650 * if keys2 are at least as well sorted as keys1.
651 */
652bool
653pathkeys_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

Calls 1

compare_pathkeysFunction · 0.85

Tested by

no test coverage detected