Re: Copying data from a CSV file into a table dynamically

Поиск
Список
Период
Сортировка
От pavan95
Тема Re: Copying data from a CSV file into a table dynamically
Дата
Msg-id 1534424294780-0.post@n3.nabble.com
обсуждение исходный текст
Ответ на Re: Copying data from a CSV file into a table dynamically  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-general
Thank you so much Ron.  You saved my efforts after a slight modification of
quotes of the command you said, it started working fine.

The modified command is as below:

cat /tmp/xyz/abc/postgresql-`date --date="0 days ago" +%Y-%m-%d`_*.csv | 
psql -U aaa -d mydb -c "COPY postgres_log1 FROM STDIN WITH csv;"

Team,

Thank you so much for your valuable time spent on this!!

Regards,
Pavan



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html


В списке pgsql-general по дате отправления:

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Sv: Re: Logical replication from standby
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: regex match and special characters