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 1kuLBk-0003gG-G0 for pgsql-general@arkaria.postgresql.org; Tue, 29 Dec 2020 20:01:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kuLBj-00065K-FB for pgsql-general@arkaria.postgresql.org; Tue, 29 Dec 2020 20:01:47 +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 1kuLBj-00065D-80 for pgsql-general@lists.postgresql.org; Tue, 29 Dec 2020 20:01:47 +0000 Received: from 024-182-127-154.biz.spectrum.com ([24.182.127.154] helo=mail.brookhurstdata.net) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kuLBg-0000E9-T7 for pgsql-general@lists.postgresql.org; Tue, 29 Dec 2020 20:01:46 +0000 Received: from mail.brookhurstdata.net (mail.brookhurstdata.net [10.1.5.12]) by mail.brookhurstdata.net (Postfix) with ESMTP id 96A4588901D for ; Tue, 29 Dec 2020 14:01:43 -0600 (CST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_4510c34921de97a8817609e59efd21bd" Date: Tue, 29 Dec 2020 14:01:43 -0600 From: Susan Hurst To: pgsql-general@lists.postgresql.org Subject: Re: copy command - something not found Organization: Brookhurst Data LLC Reply-To: susan.hurst@brookhurstdata.com Mail-Reply-To: susan.hurst@brookhurstdata.com In-Reply-To: References: <97194eb185caab667101ca543b28df00@mail.brookhurstdata.net> Message-ID: <6d3f9fc655d3fa2a6115df21adfe9a53@mail.brookhurstdata.net> X-Sender: susan.hurst@brookhurstdata.com User-Agent: Roundcube Webmail/RCMAIL_VERSION List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_4510c34921de97a8817609e59efd21bd Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Actually, the -c was in an example of a copy command that I found while working at my last job. I tried executing the command without the -c and got the same results as before, so I suppose I really don't know what it means. Can you enlighten me? --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Susan E Hurst Principal Consultant Brookhurst Data LLC Email: susan.hurst@brookhurstdata.com Mobile: 314-486-3261 On 2020-12-29 13:23, David G. Johnston wrote: > On Tuesday, December 29, 2020, Susan Hurst wrote: > >> ##-- shell script command >> psql -c < ${CSVPATH}copycmd.z > > Given the meaning of "-c" what are you expecting that to do? > > David J. --=_4510c34921de97a8817609e59efd21bd Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Actually, the -c was in an example of a copy command that I found while = working at my last job. I tried executing the command without the -c and go= t the same results as before, so I suppose I really don't know what it mean= s.

Can you enlighten me?

 

---
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Susan E Hurst Principal Consultant Brookhurst Data LLC Email: susan.hurst@brookhurstdata.com Mobile: 314-486-3261

On 2020-12-29 13:23, David G. Johnston wrote:


On Tuesday, December 29, 2020, Susan Hurst <susan.hurst@brookhurstdata.com> wrote:

##-- shell script command<= br /> psql -c < ${CSVPATH}copycmd.z
 
Given the meaning of “-c” what are you expecting that to d= o?
 
David J.
 
--=_4510c34921de97a8817609e59efd21bd--