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 1m5YU7-00016E-89 for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 18:59:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m5YU6-0004Sd-6I for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 18:59:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5YU5-0004SV-S5 for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 18:59:21 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m5YU3-0002cr-P5 for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 18:59:21 +0000 Received: by mail-pj1-x102c.google.com with SMTP id bt15so12021057pjb.2 for ; Mon, 19 Jul 2021 11:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=te3wypFrO0308VSCQIpOHDPDVSQbRe8HSepK+/ZbygY=; b=kcxuMYSQRSCcIsbkSPX7rufU6CA4CxcgLHLlyNvBfVLEluVXk4wgPZa4Wt7ce29yIQ qH3SxvskGuT232eP6Tk1q9d0BLvMwbElOyNNVXfzPlCXm4HFxp5eOWRQyUghYF/hjxQs Y1tCDpg7MdBvPT8s8B+ezW8SNzUmyFk3yDOKEkvfYVtU4LswCnN+43SqTXB2PhnmI9I/ yfyoUvGMJvCFRRVFUCXrEkxeBADkDBmjYr44ofoEjfw3Ock2Ri+pAvpISEsrjzDI15Hz WdCb6aiq9rAbBqxOkRQ8W+s07CmGFT1ADUdA+Levkf3OLgFzZ2f7dn2mh6EeLO6cZ4Qo Uceg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=te3wypFrO0308VSCQIpOHDPDVSQbRe8HSepK+/ZbygY=; b=JLaufv/gQs7c2cIXdrRMcNc+x0UfP4cAAgk8uaWTN24SBSynBZyk3deh5XVjKs8Xd/ bzvsCSeCTKRm24LXguSTgI5iOJSEu01hnwgDVgRP5gOgzhoiRFuV2YzEo1eo0Ju8DHEX zpFoq/EMLq/0XvYDNleWZl1cVmxE2BjtnZWmNuuNVzjJhbNP8WMwWH0r3yHeqpznsvCj hlwOL2ef6Kb1rcPKS8pjq00EZOzxNuvwmCN/1hVeJZFNoaAL9VApuZsWTyUwPW6Ti5v7 posJpkyWWCqmAf7zlwVy9GBCvz2L7n8yjN8Q0eZv/IiiuRUM8FDFGODdNj1y7BPxDSuk k4lg== X-Gm-Message-State: AOAM531TrHUqOkV++s30xDcKK4BhzCs56NgWtqYyBrULULPy0RVasZCP 1Ha0cB4iimvuk6riJFYUOQY= X-Google-Smtp-Source: ABdhPJyulw0bo10vguARIvsTtW8jvKS6VA66X74jGYr8MGR9xj/nUyxP3Bw6lpccD9Fy07Mq2Tnntw== X-Received: by 2002:a17:903:10c:b029:12b:5b86:37b8 with SMTP id y12-20020a170903010cb029012b5b8637b8mr17938518plc.64.1626721157816; Mon, 19 Jul 2021 11:59:17 -0700 (PDT) Received: from smtpclient.apple ([155.98.131.7]) by smtp.gmail.com with ESMTPSA id l20sm225478pjq.24.2021.07.19.11.59.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jul 2021 11:59:17 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: Formating psql query output From: Rob Sargent In-Reply-To: Date: Mon, 19 Jul 2021 12:59:16 -0600 Cc: "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <59681104-A02E-46C3-8402-9A5F13DF9AE2@gmail.com> References: To: Rich Shepard X-Mailer: Apple Mail (2.3654.100.0.2.22) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 19, 2021, at 12:53 PM, Rich Shepard = wrote: >=20 > On Mon, 19 Jul 2021, Basques, Bob (CI-StPaul) wrote: >=20 >> -F separator >> --field-separator=3Dseparator >> Use separator as the field separator for unaligned output. This is = equivalent to \pset fieldsep or \f. >=20 > Bobb, >=20 > I should have mentioned that I tried that. Without the --csv option = the results > have the headings and separator. With --csv the field separator is = ignored > regardless of postion within the command string. Can we see on line of the csv output? The field with commas should be = in quotes, no? You=E2=80=99ll have write a =E2=80=9Creal=E2=80=9D csv = importer. awk =3DF=E2=80=9D\=E2=80=9D*,*\=E2=80=9D=E2=80=9D might, heavy = on the might.