Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1BG3GE95056 for ; Mon, 11 Feb 2002 11:03:23 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1BG2qf07013; Mon, 11 Feb 2002 11:02:52 -0500 (EST) To: Bruce Momjian cc: Simone Tellini , pgsql-admin@postgresql.org Subject: Re: restore whoes In-reply-to: <200202111531.g1BFVfv11628@candle.pha.pa.us> References: <200202111531.g1BFVfv11628@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Mon, 11 Feb 2002 10:31:41 -0500" Date: Mon, 11 Feb 2002 11:02:51 -0500 Message-ID: <7010.1013443371@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/114 X-Sequence-Number: 3273 Bruce Momjian writes: > I think we can live with it _if_ we report a proper error message and > suggest a solution. Looking for a way to report an error message misses the point entirely, IMHO (even if it weren't a horrid kluge). I don't want to report an error message; I want to read the file successfully. If the file in question is your dump from an already-erased previous version, being told that you messed it up is no help. Adding options to the COPY command is no help either, because the COPY may be embedded in a multi-gigabyte dump file that you can't edit conveniently. (And what of pg_restore, or other applications that generate COPY commands?) My approach of using a GUC variable is better because it can be set from outside the dump script --- in postgresql.conf, if necessary. regards, tom lane