Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVjun-0001uJ-Dr for pgsql-general@arkaria.postgresql.org; Sun, 31 Dec 2017 20:09:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eVjum-0006Hn-CB for pgsql-general@arkaria.postgresql.org; Sun, 31 Dec 2017 20:09:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eVjul-0006Hc-U2 for pgsql-general@lists.postgresql.org; Sun, 31 Dec 2017 20:09:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eVjue-0004OH-UE for pgsql-general@postgresql.org; Sun, 31 Dec 2017 20:08:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vBVK8nLF004612; Sun, 31 Dec 2017 15:08:49 -0500 From: Tom Lane To: Rob Sargent cc: Sherman Willden , Francisco Olarte , martin.moore@avbrief.com, pgsql-general@postgresql.org Subject: Re: Find duplicates in a column then print Information to a file In-reply-to: References: Comments: In-reply-to Rob Sargent message dated "Sun, 31 Dec 2017 12:23:21 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <4610.1514750929.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 31 Dec 2017 15:08:49 -0500 Message-ID: <4611.1514750929@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rob Sargent writes: > Keep in mind there is a quick write-to-file in psql with =E2=80=98\o =E2=80=99. And don=E2=80=99t forget to turn it off with =E2=80=98\o= =E2=80=99 See also "\g filename", for one-shot output. regards, tom lane