Change plpgsql's cast cache to consider source typmod as significant.
Change plpgsql's cast cache to consider source typmod as significant.

I had thought that there was no need to maintain separate cache entries
for different source typmods, but further experimentation shows that there
is an advantage to doing so in some cases.  In particular, if a domain has
a typmod (say, "CREATE DOMAIN d AS numeric(20,0)"), failing to notice the
source typmod leads to applying a length-coercion step even when the
source has the correct typmod.

greenplum-db/gpdb,oberstet/postgres-xl,oberstet/postgres-xl,oberstet/postgres-xl,xinzweb/gpdb,techdragon/Postgres-XL,xinzweb/gpdb,lisakowen/gpdb,adam8157/gpdb,ashwinstar/gpdb,xinzweb/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,zeroae/postgres-xl,50wu/gpdb,ovr/postgres-xl,xinzweb/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,zeroae/postgres-xl,zeroae/postgres-xl,jmcatamney/gpdb,xinzweb/gpdb,lisakowen/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,ashwinstar/gpdb,zeroae/postgres-xl,50wu/gpdb,jmcatamney/gpdb,yazun/postgres-xl,yazun/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,adam8157/gpdb,ashwinstar/gpdb,adam8157/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,greenplum-db/gpdb,yazun/postgres-xl,jmcatamney/gpdb,ashwinstar/gpdb,lisakowen/gpdb,ovr/postgres-xl,yazun/postgres-xl,ovr/postgres-xl,50wu/gpdb,ashwinstar/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,xinzweb/gpdb,ovr/postgres-xl,50wu/gpdb,techdragon/Postgres-XL,lisakowen/gpdb,ashwinstar/gpdb,adam8157/gpdb,50wu/gpdb,techdragon/Postgres-XL,zeroae/postgres-xl,adam8157/gpdb,xinzweb/gpdb,50wu/gpdb,50wu/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,50wu/gpdb,ashwinstar/gpdb,adam8157/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,oberstet/postgres-xl,Postgres-XL/Postgres-XL,adam8157/gpdb,adam8157/gpdb,xinzweb/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,pavanvd/postgres-xl,ovr/postgres-xl,greenplum-db/gpdb,pavanvd/postgres-xl,lisakowen/gpdb