copy and length coercion

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: copy and length coercion
Date: 2000-10-13 06:10:16
Message-ID: 20001013151016T.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Cedar Cox 2000-10-13 07:24:34 RE: Announcing PgSQL - a Python DB-API 2.0 compliant interface to PostgreSQL
Previous Message Constantin Teodorescu 2000-10-13 05:12:49 Re: [HACKERS] PgAccess - small bug?