Explicitly select the correct side in restrictinfo for copathkey generation in cdbpath_match_preds_to_partkey_tail(). (#5728)
Explicitly select the correct side in restrictinfo for copathkey generation in cdbpath_match_preds_to_partkey_tail(). (#5728)

Just like what we do in cdbpath_partkeys_from_preds(). This is more
friendly for code reading and also is better for code maintenance.
Previous code could potentially introduce bugs since it's relids, not
equivalenceclass, that could determine the side for comparison accurately.
xinzweb/gpdb,50wu/gpdb,adam8157/gpdb,50wu/gpdb,ashwinstar/gpdb,adam8157/gpdb,50wu/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,50wu/gpdb,greenplum-db/gpdb,xinzweb/gpdb,adam8157/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,xinzweb/gpdb,adam8157/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,adam8157/gpdb,greenplum-db/gpdb,lisakowen/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,lisakowen/gpdb,50wu/gpdb,adam8157/gpdb,lisakowen/gpdb,lisakowen/gpdb,ashwinstar/gpdb,adam8157/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,50wu/gpdb,50wu/gpdb,lisakowen/gpdb,jmcatamney/gpdb,adam8157/gpdb,xinzweb/gpdb,50wu/gpdb,xinzweb/gpdb,xinzweb/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,lisakowen/gpdb,greenplum-db/gpdb