Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B4DB64758BD for ; Sat, 14 Dec 2002 21:35:17 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 79338474E5C for ; Sat, 14 Dec 2002 21:35:16 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gBF2Z7923625; Sat, 14 Dec 2002 21:35:07 -0500 (EST) From: Bruce Momjian Message-Id: <200212150235.gBF2Z7923625@candle.pha.pa.us> Subject: Re: Patch for DBD::Pg pg_relcheck problem In-Reply-To: To: David Wheeler Date: Sat, 14 Dec 2002 21:35:07 -0500 (EST) Cc: Ian Barwick , Tom Lane , dbi-dev@perl.org, pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/50 X-Sequence-Number: 3463 David Wheeler wrote: > Since, however, nulls aren't really allowed in any PostgreSQL data type > (except bytea, and then only if specifically bound as such to a > prepared statement), I'm not sure what to do about this. We can't leave > the data alone unless we just want PostgreSQL to throw an error (likely > to be a mysterious error, as the user won't know why her data is > getting truncated). > > I think...throw an exception, since PostgreSQL can't handle the null > byte. Then it will be up to the user to clean up her data, and we won't > have to touch it. Yep, throw an error, and maybe point to bytea as the solution, until we have a better one. ;-) -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073