This patch fixes an obvious bug in the "should I print the duration of this query?" logic in postgres.c
This patch fixes an obvious bug in the "should I print the duration of
this query?" logic in postgres.c

Also, make it print "duration:" like log_duration.

Neil Conway

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