Remove the "last ditch" code path in join_search_one_level().
Remove the "last ditch" code path in join_search_one_level().

So far as I can tell, it is no longer possible for this heuristic to do
anything useful, because the new weaker definition of
have_relevant_joinclause means that any relation with a joinclause must be
considered joinable to at least one other relation.  It would still be
possible for the code block to be entered, for example if there are join
order restrictions that prevent any join of the current level from being
formed; but in that case it's just a waste of cycles to attempt to form
cartesian joins, since the restrictions will still apply.

Furthermore, IMO the existence of this code path can mask bugs elsewhere;
we would have noticed the problem with cartesian joins a lot sooner if
this code hadn't compensated for it in the simplest case.

Accordingly, let's remove it and see what happens.  I'm committing this
separately from the prerequisite changes in have_relevant_joinclause,
just to make the question easier to revisit if there is some fault in
my logic.

xinzweb/gpdb,oberstet/postgres-xl,arcivanov/postgres-xl,oberstet/postgres-xl,adam8157/gpdb,lisakowen/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,adam8157/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,yazun/postgres-xl,yazun/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,yazun/postgres-xl,arcivanov/postgres-xl,ovr/postgres-xl,snaga/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,yazun/postgres-xl,50wu/gpdb,lisakowen/gpdb,xinzweb/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,Postgres-XL/Postgres-XL,ashwinstar/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,postmind-net/postgres-xl,ashwinstar/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,greenplum-db/gpdb,arcivanov/postgres-xl,50wu/gpdb,arcivanov/postgres-xl,postmind-net/postgres-xl,snaga/postgres-xl,jmcatamney/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,xinzweb/gpdb,arcivanov/postgres-xl,techdragon/Postgres-XL,snaga/postgres-xl,jmcatamney/gpdb,snaga/postgres-xl,postmind-net/postgres-xl,yazun/postgres-xl,tpostgres-projects/tPostgres,zeroae/postgres-xl,greenplum-db/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,adam8157/gpdb,techdragon/Postgres-XL,snaga/postgres-xl,zeroae/postgres-xl,Postgres-XL/Postgres-XL,greenplum-db/gpdb,xinzweb/gpdb,xinzweb/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,lisakowen/gpdb,postmind-net/postgres-xl,ovr/postgres-xl,xinzweb/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,jmcatamney/gpdb,pavanvd/postgres-xl,xinzweb/gpdb,kmjungersen/PostgresXL,kmjungersen/PostgresXL,kmjungersen/PostgresXL,jmcatamney/gpdb,lisakowen/gpdb,50wu/gpdb,ashwinstar/gpdb,ovr/postgres-xl,tpostgres-projects/tPostgres,tpostgres-projects/tPostgres,pavanvd/postgres-xl,oberstet/postgres-xl,ashwinstar/gpdb,50wu/gpdb,greenplum-db/gpdb,kmjungersen/PostgresXL,zeroae/postgres-xl,jmcatamney/gpdb,50wu/gpdb,ovr/postgres-xl,tpostgres-projects/tPostgres,ashwinstar/gpdb,pavanvd/postgres-xl,arcivanov/postgres-xl,greenplum-db/gpdb,pavanvd/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,50wu/gpdb,adam8157/gpdb,50wu/gpdb,zeroae/postgres-xl,tpostgres-projects/tPostgres,Postgres-XL/Postgres-XL,50wu/gpdb,adam8157/gpdb,lisakowen/gpdb,lisakowen/gpdb