Re: Redirecting select() output generates error

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Redirecting select() output generates error
Date: 2018-10-29 19:30:01
Message-ID: alpine.LNX.2.20.1810291223240.17057@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 29 Oct 2018, David G. Johnston wrote:

> You can either use \out or \copy within psql script or redirect the shell
> output using shell features.

David,

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;
ERROR: syntax error at or near "|"
LINE 1: | 1980-05-08 | 0.5 | 0.5 | ug/L

Still not working.

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2018-10-29 19:36:48 Re: Redirecting select() output generates error
Previous Message David G. Johnston 2018-10-29 19:28:34 Re: Redirecting select() output generates error