Thread: copy and length coercion

copy and length coercion

From
Tatsuo Ishii
Date:
I notced that COPY FROM does not invoke the length coercion function
before calling heap_insert(). This leads sometimes bad things such as
incorrectly truncated mutibyte strings. My idea is finding an
appropreate function like currently
coerce_type_typmod(parser/parse_coerce.c) does, and calling it before
heap_insert()

Comments?
--
Tatsuo Ishii