From: "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>
From: "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>

For substr() and substring() on the text data type, the relevant code is in
varlena.c. You are right, there is a problem. I have a patch which I will
apply to the source tree soon. The copy enclosed below probably does not
preserve tabs correctly so cannot be applied directly; the relevant change
is simply changing the ">=" to ">"...

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