Re: Redirecting select() output generates error

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Redirecting select() output generates error
Date: 2018-10-29 19:42:06
Message-ID: 6BE9C863-5489-4D63-B8C2-C6CB47758505@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Oct 29, 2018, at 1:37 PM, David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
>
> On Mon, Oct 29, 2018 at 12:30 PM Rich Shepard <rshepard(at)appl-ecosys(dot)com <mailto:rshepard(at)appl-ecosys(dot)com>> wrote:
> willamette-river-hg-# \out data-summary-by-form.txt
> willamette-river-hg-# select param, site_nbr, sampdate, min(quant), max(quant), unit from concentrations group by param, site_nbr, sampdate, unit order by param, site_nbr, sampdate, unit;
>
> The "-#" prompt in psql means you are in line continuation mode. The \out meta-command should be issued while sitting at an initial prompt "=#".
>
> Being in line-continuation mode means you are typing something else above it that doesn't constitute a full command - and you are still not showing us what that is. This is the reason I asked for basically a self-contained example.
>
> David J.
>
Being inside emacs buffer has nothing to do with the problem. I do it all the time. As David points out, continuation in play.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-10-29 19:48:37 Re: Should pg 11 use a lot more memory building an spgist index?
Previous Message David G. Johnston 2018-10-29 19:37:21 Re: Redirecting select() output generates error