Coerce 'unknown' type parameters to the right type in the fixed-params parse_analyze() function. That case occurs e.g with PL/pgSQL EXECUTE ... USING 'stringconstant'.
Coerce 'unknown' type parameters to the right type in the fixed-params
parse_analyze() function. That case occurs e.g with PL/pgSQL
EXECUTE ... USING 'stringconstant'.

The coercion with a CoerceViaIO node. The result is similar to the coercion
via input function performed for unknown constants in coerce_type(),
except that this happens at runtime.

Backpatch to 9.0. The issue is present in 8.4 as well, but the coerce param
hook infrastructure this patch relies on was introduced in 9.0. Given the
lack of user reports and harmlessness of the bug, it's not worth attempting
a different fix just for 8.4.

yazun/postgres-xl,techdragon/Postgres-XL,oberstet/postgres-xl,snaga/postgres-xl,yazun/postgres-xl,arcivanov/postgres-xl,postmind-net/postgres-xl,zeroae/postgres-xl,yazun/postgres-xl,lisakowen/gpdb,zeroae/postgres-xl,tpostgres-projects/tPostgres,pavanvd/postgres-xl,kmjungersen/PostgresXL,oberstet/postgres-xl,greenplum-db/gpdb,jmcatamney/gpdb,postmind-net/postgres-xl,postmind-net/postgres-xl,xinzweb/gpdb,techdragon/Postgres-XL,50wu/gpdb,postmind-net/postgres-xl,arcivanov/postgres-xl,50wu/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,oberstet/postgres-xl,arcivanov/postgres-xl,xinzweb/gpdb,xinzweb/gpdb,50wu/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,jmcatamney/gpdb,snaga/postgres-xl,adam8157/gpdb,snaga/postgres-xl,ashwinstar/gpdb,ashwinstar/gpdb,ovr/postgres-xl,lisakowen/gpdb,xinzweb/gpdb,ashwinstar/gpdb,xinzweb/gpdb,snaga/postgres-xl,adam8157/gpdb,lisakowen/gpdb,arcivanov/postgres-xl,tpostgres-projects/tPostgres,jmcatamney/gpdb,ovr/postgres-xl,postmind-net/postgres-xl,50wu/gpdb,pavanvd/postgres-xl,kmjungersen/PostgresXL,lisakowen/gpdb,Postgres-XL/Postgres-XL,ashwinstar/gpdb,jmcatamney/gpdb,xinzweb/gpdb,tpostgres-projects/tPostgres,techdragon/Postgres-XL,oberstet/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,50wu/gpdb,greenplum-db/gpdb,50wu/gpdb,lisakowen/gpdb,greenplum-db/gpdb,arcivanov/postgres-xl,snaga/postgres-xl,ashwinstar/gpdb,tpostgres-projects/tPostgres,techdragon/Postgres-XL,jmcatamney/gpdb,yazun/postgres-xl,ovr/postgres-xl,Postgres-XL/Postgres-XL,greenplum-db/gpdb,50wu/gpdb,kmjungersen/PostgresXL,techdragon/Postgres-XL,lisakowen/gpdb,adam8157/gpdb,adam8157/gpdb,ovr/postgres-xl,xinzweb/gpdb,pavanvd/postgres-xl,zeroae/postgres-xl,50wu/gpdb,oberstet/postgres-xl,Postgres-XL/Postgres-XL,jmcatamney/gpdb,kmjungersen/PostgresXL,ashwinstar/gpdb,lisakowen/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,greenplum-db/gpdb,jmcatamney/gpdb,adam8157/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,ovr/postgres-xl,zeroae/postgres-xl,arcivanov/postgres-xl,greenplum-db/gpdb