Skip to content

No permissions for restoring psql dump #1

Description

@kuriwaki

Hi, I'm having trouble loading these files. After some failed attempts, I've managed to go to the PostgreSQL shell on pgAdmin and run

\i <PATH TO DOWNLOADED precints20.sql

as suggested in https://stackoverflow.com/a/75131834.

This attempts a reload but in I error out with

psql:<PATH>/precincts20.sql:9910036: ERROR:  role "sbaltz" does not exist
psql:<PATH>/precincts20.sql:9910037: ERROR:  role "reader" does not exist

(where I've hidden my own paths with PATH).

This seems to be due to the last few lines in the postgresql dump:

GRANT SELECT ON TABLE public.precincts20 TO sbaltz;
GRANT SELECT ON TABLE public.precincts20 TO reader;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions