pgsql-server/src backend/parser/parse_coerce.c ...
pgsql-server/src backend/parser/parse_coerce.c ...
От:
tgl@svr1.postgresql.org (Tom Lane)
Дата:
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@svr1.postgresql.org 04/03/14 21:13:41 Modified files: src/backend/parser: parse_coerce.c src/include/catalog: catversion.h pg_cast.h src/test/regress/expected: opr_sanity.out src/test/regress/sql: opr_sanity.sql Log message: Remove grotty special-case code in coerce_to_target_type() that implemented casts to varchar and bpchar using a cast-to-text function. This is a holdover from before we had pg_cast; it now makes more sense to just list these casts in pg_cast. While at it, add pg_cast entries for the other direction (casts from varchar/bpchar) where feasible.