im trying now to:
postgres@ADserver:~$ psql -c 'COPY TABLE_NAME (id, id2) FROM '/var/lib/postgresql/pid_cpu' DELIMITER ' ';'
psql: error: FATAL: database ";" does not exist
Why am I getting this? i believe its because all the ' ' '
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 21, 2021, 6:36 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jul 20, 2021, 2:20 AM EDT
Hi,
I don't think single quotes not required for semi-colon ';'
Reference :
https://www.postgresql.org/docs/9.0/sql-copy.html
Mallesh Mallu76 reputationPosted Jul 21, 2021, 11:09 PM EDT