Hi all,
I am trying to copy a file into our postgreS database.
I keep getting an error saying the file I am trying to load does not have permissions even though it does.
Here is my command line:
sqlfile=/home/oper/sacsma.sql
inside sacsma.sql
COPY sacsmastate from '/home/oper/sacsmastate.sql'
USING DELIMITERS '|' WITH NULL AS '\null';
/usr/bin/psql -At -h dell3-tir -d hd_ob6tir -U postgres -f $sqlfile
Any ideas why it is having trouble reading the sacsmastate.sql file?
-Jim