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
Post a Comment