postgresql csv file import -


when try load csv file postgresql. use following command.

create table population(     country char(80),     year integer,     population integer );  copy population '/users/chittampalliyashaswini/desktop/population.csv'            delimiter ',' csv header; 

then following error.

error: not open file "/users/chittampalliyashaswini/desktop/population.csv" reading: permission denied

the message clear, user postgresql running under has no permission read file. can move /tmp and/or fix permissions on path. typically switch postgres user , run less check.

if 1 time thing, suggest move /tmp/ , use path.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -