Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1BJFjE89179 for ; Mon, 11 Feb 2002 14:15:45 -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 g1BJFDf11292; Mon, 11 Feb 2002 14:15:13 -0500 (EST) To: Bruce Momjian cc: Simone Tellini , pgsql-admin@postgresql.org Subject: Re: restore whoes In-reply-to: <200202111804.g1BI40d23254@candle.pha.pa.us> References: <200202111804.g1BI40d23254@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Mon, 11 Feb 2002 13:04:00 -0500" Date: Mon, 11 Feb 2002 14:15:13 -0500 Message-ID: <11287.1013454913@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/128 X-Sequence-Number: 3286 Bruce Momjian writes: > Another option is to just print the sed command that would strip off the > \r from the end of the line. You keep on assuming that a mechanical fix is possible when a file's been munged. It is *NOT*. There is no reliable way to tell whether a \r was part of the original data or was added by a newline converter. We will not do anyone a service by printing a message that falsely suggests they don't need to think carefully about how to reconstruct their data. The only thing worse than no error message is a misleading error message. regards, tom lane