From: Adrian Klaver <adrian.klaver@aklaver.com>
To: susan.hurst@brookhurstdata.com
To: pgsql-general@lists.postgresql.org
Subject: Re: copy command - something not found
Date: Tue, 29 Dec 2020 12:43:39 -0800
Message-ID: <3111aa28-2211-c2ce-8488-7de244d41b27@aklaver.com> (raw)
In-Reply-To: <6d3f9fc655d3fa2a6115df21adfe9a53@mail.brookhurstdata.net>
References: <97194eb185caab667101ca543b28df00@mail.brookhurstdata.net>
<CAKFQuwZa4dmfXGBzrEfkBfC2NTbpkJ-E5aqUEdHg=1hgGQEYrQ@mail.gmail.com>
<6d3f9fc655d3fa2a6115df21adfe9a53@mail.brookhurstdata.net>
On 12/29/20 12:01 PM, Susan Hurst wrote:
> 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?
-c is for a command string and if I am following <
${CSVPATH}copycmd.z(tmp) is a redirect of a file.
It will help to know what is actually in the file?
>
> ---
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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
>> <mailto: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.
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, susan.hurst@brookhurstdata.com
Subject: Re: copy command - something not found
In-Reply-To: <3111aa28-2211-c2ce-8488-7de244d41b27@aklaver.com>
References: <97194eb185caab667101ca543b28df00@mail.brookhurstdata.net> <CAKFQuwZa4dmfXGBzrEfkBfC2NTbpkJ-E5aqUEdHg=1hgGQEYrQ@mail.gmail.com> <6d3f9fc655d3fa2a6115df21adfe9a53@mail.brookhurstdata.net> <3111aa28-2211-c2ce-8488-7de244d41b27@aklaver.com>
* 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