Repair longstanding error in btree xlog replay: XLogReadBuffer should be passed extend = true whenever we are reading a page we intend to reinitialize completely, even if we think the page "should exist".  This is because it might indeed not exist, if the relation got truncated sometime after the current xlog record was made and before the crash we're trying to recover from.  These two thinkos appear to explain both of the old bug reports discussed here: http://archives.postgresql.org/pgsql-hackers/2005-05/msg01369.php
Repair longstanding error in btree xlog replay: XLogReadBuffer should be
passed extend = true whenever we are reading a page we intend to reinitialize
completely, even if we think the page "should exist".  This is because it
might indeed not exist, if the relation got truncated sometime after the
current xlog record was made and before the crash we're trying to recover
from.  These two thinkos appear to explain both of the old bug reports
discussed here:
http://archives.postgresql.org/pgsql-hackers/2005-05/msg01369.php

ovr/postgres-xl,Chibin/gpdb,rubikloud/gpdb,rvs/gpdb,oberstet/postgres-xl,Chibin/gpdb,xuegang/gpdb,lintzc/gpdb,cjcjameson/gpdb,xinzweb/gpdb,chrishajas/gpdb,lisakowen/gpdb,janebeckman/gpdb,jmcatamney/gpdb,Quikling/gpdb,Chibin/gpdb,xuegang/gpdb,royc1/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,ahachete/gpdb,xinzweb/gpdb,janebeckman/gpdb,50wu/gpdb,Chibin/gpdb,tangp3/gpdb,ahachete/gpdb,edespino/gpdb,rubikloud/gpdb,xinzweb/gpdb,chrishajas/gpdb,royc1/gpdb,CraigHarris/gpdb,ashwinstar/gpdb,lisakowen/gpdb,adam8157/gpdb,pavanvd/postgres-xl,ovr/postgres-xl,Postgres-XL/Postgres-XL,adam8157/gpdb,lisakowen/gpdb,janebeckman/gpdb,zeroae/postgres-xl,yuanzhao/gpdb,lpetrov-pivotal/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,adam8157/gpdb,yuanzhao/gpdb,rvs/gpdb,postmind-net/postgres-xl,Chibin/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,chrishajas/gpdb,rvs/gpdb,cjcjameson/gpdb,tangp3/gpdb,lintzc/gpdb,yuanzhao/gpdb,snaga/postgres-xl,janebeckman/gpdb,lintzc/gpdb,jmcatamney/gpdb,rvs/gpdb,yuanzhao/gpdb,oberstet/postgres-xl,kaknikhil/gpdb,xinzweb/gpdb,Chibin/gpdb,zaksoup/gpdb,atris/gpdb,Quikling/gpdb,kaknikhil/gpdb,yazun/postgres-xl,atris/gpdb,cjcjameson/gpdb,rubikloud/gpdb,yazun/postgres-xl,lintzc/gpdb,yazun/postgres-xl,cjcjameson/gpdb,foyzur/gpdb,chrishajas/gpdb,lintzc/gpdb,lisakowen/gpdb,zeroae/postgres-xl,atris/gpdb,0x0FFF/gpdb,lpetrov-pivotal/gpdb,50wu/gpdb,janebeckman/gpdb,ahachete/gpdb,jmcatamney/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,rvs/gpdb,snaga/postgres-xl,zeroae/postgres-xl,edespino/gpdb,foyzur/gpdb,ashwinstar/gpdb,xinzweb/gpdb,techdragon/Postgres-XL,randomtask1155/gpdb,rvs/gpdb,kaknikhil/gpdb,50wu/gpdb,tpostgres-projects/tPostgres,lisakowen/gpdb,oberstet/postgres-xl,foyzur/gpdb,zaksoup/gpdb,tpostgres-projects/tPostgres,zaksoup/gpdb,ashwinstar/gpdb,ahachete/gpdb,zeroae/postgres-xl,CraigHarris/gpdb,techdragon/Postgres-XL,greenplum-db/gpdb,CraigHarris/gpdb,janebeckman/gpdb,tangp3/gpdb,foyzur/gpdb,ovr/postgres-xl,tpostgres-projects/tPostgres,jmcatamney/gpdb,adam8157/gpdb,rvs/gpdb,randomtask1155/gpdb,atris/gpdb,rvs/gpdb,royc1/gpdb,adam8157/gpdb,chrishajas/gpdb,edespino/gpdb,0x0FFF/gpdb,xinzweb/gpdb,yazun/postgres-xl,lisakowen/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,chrishajas/gpdb,techdragon/Postgres-XL,50wu/gpdb,ahachete/gpdb,yuanzhao/gpdb,xuegang/gpdb,rubikloud/gpdb,greenplum-db/gpdb,chrishajas/gpdb,tangp3/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,zaksoup/gpdb,yazun/postgres-xl,greenplum-db/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,janebeckman/gpdb,foyzur/gpdb,Postgres-XL/Postgres-XL,cjcjameson/gpdb,CraigHarris/gpdb,Postgres-XL/Postgres-XL,xuegang/gpdb,xuegang/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,atris/gpdb,postmind-net/postgres-xl,ashwinstar/gpdb,lpetrov-pivotal/gpdb,lisakowen/gpdb,lpetrov-pivotal/gpdb,kmjungersen/PostgresXL,rubikloud/gpdb,kmjungersen/PostgresXL,postmind-net/postgres-xl,greenplum-db/gpdb,lintzc/gpdb,ahachete/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,arcivanov/postgres-xl,50wu/gpdb,lpetrov-pivotal/gpdb,royc1/gpdb,xinzweb/gpdb,yuanzhao/gpdb,edespino/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,lisakowen/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,arcivanov/postgres-xl,royc1/gpdb,tangp3/gpdb,chrishajas/gpdb,50wu/gpdb,pavanvd/postgres-xl,Quikling/gpdb,Quikling/gpdb,Quikling/gpdb,CraigHarris/gpdb,arcivanov/postgres-xl,foyzur/gpdb,CraigHarris/gpdb,tangp3/gpdb,50wu/gpdb,ashwinstar/gpdb,edespino/gpdb,oberstet/postgres-xl,janebeckman/gpdb,lpetrov-pivotal/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,xuegang/gpdb,adam8157/gpdb,zaksoup/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,yuanzhao/gpdb,adam8157/gpdb,arcivanov/postgres-xl,zeroae/postgres-xl,atris/gpdb,tangp3/gpdb,atris/gpdb,0x0FFF/gpdb,edespino/gpdb,adam8157/gpdb,snaga/postgres-xl,greenplum-db/gpdb,0x0FFF/gpdb,Quikling/gpdb,oberstet/postgres-xl,foyzur/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,Quikling/gpdb,edespino/gpdb,Chibin/gpdb,kmjungersen/PostgresXL,postmind-net/postgres-xl,randomtask1155/gpdb,CraigHarris/gpdb,zaksoup/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,janebeckman/gpdb,atris/gpdb,edespino/gpdb,0x0FFF/gpdb,lintzc/gpdb,randomtask1155/gpdb,rubikloud/gpdb,randomtask1155/gpdb,zaksoup/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,ovr/postgres-xl,CraigHarris/gpdb,Chibin/gpdb,ahachete/gpdb,edespino/gpdb,jmcatamney/gpdb,zaksoup/gpdb,postmind-net/postgres-xl,cjcjameson/gpdb,xuegang/gpdb,greenplum-db/gpdb,snaga/postgres-xl,ashwinstar/gpdb,royc1/gpdb,rubikloud/gpdb,Quikling/gpdb,ovr/postgres-xl,royc1/gpdb,xuegang/gpdb,xinzweb/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,Quikling/gpdb,pavanvd/postgres-xl,arcivanov/postgres-xl,Chibin/gpdb,royc1/gpdb,rvs/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,rvs/gpdb,kmjungersen/PostgresXL,rubikloud/gpdb,ahachete/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,Quikling/gpdb,cjcjameson/gpdb,50wu/gpdb,foyzur/gpdb,edespino/gpdb,lintzc/gpdb,tangp3/gpdb,snaga/postgres-xl,tpostgres-projects/tPostgres