X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 6BEB39DCAB7 for ; Fri, 9 Dec 2005 13:38:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32735-09 for ; Fri, 9 Dec 2005 13:38:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by postgresql.org (Postfix) with ESMTP id 0A4819DCAB6 for ; Fri, 9 Dec 2005 13:38:46 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jB9HcLI18465; Fri, 9 Dec 2005 12:38:21 -0500 (EST) From: Bruce Momjian Message-Id: <200512091738.jB9HcLI18465@candle.pha.pa.us> Subject: Re: Upcoming PG re-releases In-Reply-To: <20051209164409.GG20352@svana.org> To: Martijn van Oosterhout Date: Fri, 9 Dec 2005 12:38:21 -0500 (EST) CC: Gregory Maxwell , Gavin Sherry , Peter Eisentraut , pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.007 required=5 tests=[AWL=0.007] X-Spam-Score: 0.007 X-Spam-Level: X-Archive-Number: 200512/506 X-Sequence-Number: 77354 Martijn van Oosterhout wrote: -- Start of PGP signed section. > On Fri, Dec 09, 2005 at 11:34:22AM -0500, Bruce Momjian wrote: > > I think the problem with any kind of function-call detection is that the > > data has to get into the database first, and it isn't clear how someone > > loading a failed dump would do that aside from modifying the column to > > bytea in the dump, loading it in, then fixing it. The iconv idea has > > the advantage that it can be fixed before loading into the database. > > The point of this function is to test the data *before* you even create > the dump, while it is still running on 7.4 or 8.0. > > This means someone who is planning on upgrading to 8.1 in two months > can use this function now to weed out the bad data before the upgrade > even starts. Oh, so you back-load it into the old database. Interesting. I assume to be useful you would have to write something that checked every column values in every table and database. -- 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