Re: copy command - something not found - Mailing list pgsql-general

From Susan Hurst
Subject Re: copy command - something not found
Date
Msg-id 6d3f9fc655d3fa2a6115df21adfe9a53@mail.brookhurstdata.net
Whole thread Raw
In response to Re: copy command - something not found  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: copy command - something not found
Re: copy command - something not found
List pgsql-general

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 <susan.hurst@brookhurstdata.com> wrote:

##-- shell script command
psql -c < ${CSVPATH}copycmd.z
 
Given the meaning of “-c” what are you expecting that to do?
 
David J.
 

pgsql-general by date:

Previous
From: Susan Hurst
Date:
Subject: Re: copy command - something not found
Next
From: "David G. Johnston"
Date:
Subject: Re: copy command - something not found