I am getting this error while restoring data from the dump file.
nishant@nishant-Lenovo-G50-70:~/Documents$ psql sortation_gor1 < dump.sql
psql: FATAL: role "nishant" does not exist
I have followed the Postgress Ubuntu Documentation But when I am trying to restore the database I am getting this error. Any IDea. ?
PostgreSQL
pg_dumpdoesn't save a roles. Roles in PostgreSQL are related to database cluster, not to single database. It doespg_dumpallwith option-r. You should to create missing roles manually with SQL statementCREATE ROLE name LOGINor you have to use export roles withpg_dump -r.