From: Tom Lane <tgl@sss.pgh.pa.us>
To: susan.hurst@brookhurstdata.com
Cc: Discuss List Postgres <pgsql-general@lists.postgresql.org>
Subject: Re: copy command - something not found
Date: Tue, 29 Dec 2020 14:55:40 -0500
Message-ID: <2193303.1609271740@sss.pgh.pa.us> (raw)
In-Reply-To: <97194eb185caab667101ca543b28df00@mail.brookhurstdata.net>
References: <97194eb185caab667101ca543b28df00@mail.brookhurstdata.net>
Susan Hurst <susan.hurst@brookhurstdata.com> writes:
> ##-- output from terminal window
> /home/dbzone/stp/rfc_db/RFC-00001/RFC-00001_copy_bar_active.csv:
> schema_name,table_name,table_alias: not found
> /home/dbzone/stp/rfc_db/RFC-00001/RFC-00001_copy_bar_active.csv:
> chief,source_systems,ssys: not found
> /home/dbzone/stp/rfc_db/RFC-00001/RFC-00001_copy_bar_active.csv:
> chief,lookup_categories,lcat: not found
> /home/dbzone/stp/rfc_db/RFC-00001/RFC-00001_copy_bar_active.csv:
> chief,lookup_data,ldat: not found
I'd say you're feeding the contents of the csv file to the Unix shell,
not to psql. It's not real clear how that would happen given what you
show as your initial shell command, but maybe ${CSVPATH} contains
something odd? Also, as David noted, "-c" without any argument
certainly isn't right.
regards, tom lane
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: tgl@sss.pgh.pa.us, susan.hurst@brookhurstdata.com
Subject: Re: copy command - something not found
In-Reply-To: <2193303.1609271740@sss.pgh.pa.us>
References: <97194eb185caab667101ca543b28df00@mail.brookhurstdata.net> <2193303.1609271740@sss.pgh.pa.us>
* 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