Truncate the predicate lock SLRU to empty, instead of almost empty.
Truncate the predicate lock SLRU to empty, instead of almost empty.

Otherwise, the SLRU machinery can get confused and think that the SLRU
has wrapped around.  Along the way, regardless of whether we're
truncating all of the SLRU or just some of it, flush pages after
truncating, rather than before.

Kevin Grittner

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