Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyyRC-00CRYn-KS for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Nov 2023 17:58:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qyyRB-002KMz-6q for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Nov 2023 17:58:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyyRA-002KMq-V0 for pgsql-bugs@lists.postgresql.org; Fri, 03 Nov 2023 17:58:28 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyyR5-003nfn-CA for pgsql-bugs@lists.postgresql.org; Fri, 03 Nov 2023 17:58:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=eiIbHILnnmOxmk+zDouuiKvRHYo71yMxNv3Cy3xk7KY=; b=dorsy EzLu31rLrmj4nw4HcdCWIccC99XEMr19BCn9CTaDRuH3sS70m0fXphevAf2CA12P16DzePBWAC3ZG WFqYyzsfJjfhbCnZRrh1qhnxVvoDuHedC9Se4lBqO1gC9KUDjfkutDIXKIx2zxFg0IkUmM77dSa3+ zJJkk1+JT/+jiM6xWooi9GijgyBatM5iyzBCNoHBkwT8SZKI5mYrDiVkTpC4qhyRAFM0VY73LNkqz 2YR0LadWLaORH1d6RF4CdUeigRgDxiB3Txuw5tXvLpii6g0kSzK18+ozxLCFZmq6jHXjq6qDdfP4b Tm6rG5z1yanlkx6//AyQo/5b/feZw==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qyyR3-000aRX-28; Fri, 03 Nov 2023 13:58:21 -0400 Date: Fri, 3 Nov 2023 13:58:21 -0400 From: Bruce Momjian To: Tom Lane Cc: Noah Misch , Svante Richter , pgsql-bugs@lists.postgresql.org Subject: Re: COPY TO CSV produces data that is incompatible/unsafe for \COPY FROM CSV Message-ID: References: <20220814070053.GA92855@rfd.leadboat.com> <624693.1660486135@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Oct 28, 2023 at 11:38:37AM -0400, Bruce Momjian wrote: > On Tue, Aug 16, 2022 at 11:26:47AM -0400, Bruce Momjian wrote: > > I think at this point we should either fix this or document it. > > I have decided to document this with the attached patch. I plan to > apply it to all supported Postgres versions. If we ever fix FROM file > so only FROM STDIN is a problem, we can update the documentation. Patch applied to all supported versions. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.