The attached patch should be sufficient to fix libpgtcl. It requires PostgreSQL to support unicode-conversion, but retains binary compatibility among Tcl versions.
The attached patch should be sufficient to fix libpgtcl. It requires
PostgreSQL to support unicode-conversion, but retains binary
compatibility among Tcl versions.

However, it neither checks at compile time not at runtime, if support
for unicode-conversion does really exist and it doesn't prevent the
user from changing the client encoding after initialization. I think
there should be warnings about this somewhere in the documentation.

Reinhard Max

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