copy and length coercion

Started by Tatsuo Ishiiabout 25 years ago1 messages
#1Tatsuo Ishii
t-ishii@sra.co.jp

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