I'm trying to import a table to a database called 'test' that I've already created as the postgres superuser. The file i.e. the table is in a drive/filesystem that's already mounted.
*I'm logged into the postgres user. And other users have read, write and execute permissions for this file.
When I use the following command
\i '/run/media/qazizarifulislam/Windows_files/Work/RA/learning-postgres/person.sql'
I get the error- /run/media/qazizarifulislam/Windows_files/Work/RA/learning-postgres/person.sql: Permission denied
where,
- qazizarifulislam is my username
- Windows_files is the filesystem (It's an NFTS and not an external HDD or SDD)
- The remaining portions are just subfolders.
- person.sql is a file that contains lines that creates the table and then has querries that inserts records into the table. (Preview shown below)
How do I fix this/ import the table?
postgres
. May bechmod
? In any case, this seems to be off-topic here.