Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5Ybh-0001TB-DL for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 19:07:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m5Ybg-00019W-7g for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 19:07:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5Ybf-00019E-VB for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 19:07:11 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5Ybd-0004fM-SS for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 19:07:10 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id DEBBF2A0107 for ; Mon, 19 Jul 2021 12:07:08 -0700 (PDT) Date: Mon, 19 Jul 2021 12:07:08 -0700 (PDT) From: Rich Shepard To: "pgsql-general@lists.postgresql.org" Subject: Re: Formating psql query output In-Reply-To: <59681104-A02E-46C3-8402-9A5F13DF9AE2@gmail.com> Message-ID: References: <59681104-A02E-46C3-8402-9A5F13DF9AE2@gmail.com> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 19 Jul 2021, Rob Sargent wrote: > Can we see on line of the csv output? The field with commas should be in > quotes, no? You’ll have write a “real” csv importer. awk =F”\”*,*\”” > might, heavy on the might. Rob, Here's a redacted output line: 8,2019-04-08,Phone,Went to voice mail @ 14:48; didn't leave a message. Call Wednesday morning,8,,,537,537, No quoted text fields. Rich