Thank you for applying patch --- regexp_replace.
Thank you for applying patch --- regexp_replace.

An attached patch is a small additional improvement.

This patch use appendStringInfoText instead of appendStringInfoString.
There is an overhead of PG_TEXT_GET_STR when appendStringInfoString is
executed by text type. This can be reduced by appendStringInfoText.

Atsushi Ogawa

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