pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rob Sargent <robjsargent@gmail.com>
Cc: Sherman Willden <operasopranos@gmail.com>
Cc: Francisco Olarte <folarte@peoplecall.com>
Cc: martin.moore@avbrief.com
Cc: pgsql-general@postgresql.org
Subject: Re: Find duplicates in a column then print Information to a file
Date: Sun, 31 Dec 2017 15:08:49 -0500
Message-ID: <4611.1514750929@sss.pgh.pa.us> (raw)
In-Reply-To: <B63B2885-D317-4F0D-9E96-82F32FB42B07@gmail.com>
References: <CAGv-wXELs8sm=GTSOy-f=PJuymo0WAUD0-N4yTEW3WFJTL2Wsg@mail.gmail.com>
	<CA+bJJbxN+nEiE7T02OpR4P_z8b7=tfVw+FUjLkO5icDuev-TKQ@mail.gmail.com>
	<CAGv-wXH=BKnc_ZTM_ynYCJB0sFn-4we0uajpfgOE_jinsPbxYw@mail.gmail.com>
	<B63B2885-D317-4F0D-9E96-82F32FB42B07@gmail.com>

Rob Sargent <robjsargent@gmail.com> writes:
> Keep in mind there is a quick write-to-file in psql with ‘\o <filename>’. And don’t forget to turn it off with ‘\o’

See also "\g filename", for one-shot output.

			regards, tom lane




view thread (6+ messages)

Message-ID: <4611.1514750929@sss.pgh.pa.us>
Permalink:  ../4611.1514750929@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4611.1514750929@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robjsargent@gmail.com, operasopranos@gmail.com, folarte@peoplecall.com, martin.moore@avbrief.com
  Subject: Re: Find duplicates in a column then print Information to a file
  In-Reply-To: <4611.1514750929@sss.pgh.pa.us>
  References: <CAGv-wXELs8sm=GTSOy-f=PJuymo0WAUD0-N4yTEW3WFJTL2Wsg@mail.gmail.com> <CA+bJJbxN+nEiE7T02OpR4P_z8b7=tfVw+FUjLkO5icDuev-TKQ@mail.gmail.com> <CAGv-wXH=BKnc_ZTM_ynYCJB0sFn-4we0uajpfgOE_jinsPbxYw@mail.gmail.com> <B63B2885-D317-4F0D-9E96-82F32FB42B07@gmail.com> <4611.1514750929@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox