Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL database dump #7

Closed
julsraemy opened this issue Jul 22, 2021 · 1 comment
Closed

PostgreSQL database dump #7

julsraemy opened this issue Jul 22, 2021 · 1 comment

Comments

@julsraemy
Copy link
Member

When trying to import the PostgreSQL database dump (pia_populated.sql), the following error is prompted:

ERROR:  syntax error at or near "1"
LINE 1043: 1 336837 Société suisse des traditions populaires, Section F...
           ^
SQL state: 42601
Character: 24373

@thgie: "Maybe it is due to an error in the schema or how pgAdmin does the plain SQL export."

@thgie
Copy link
Contributor

thgie commented Aug 10, 2021

This seems to be a problem specific to pgadmin. The import of the populated sql dump via command line interface works fine. Make sure to grant privileges on a specific user after import.

# change to postgres user
sudo su - postgres

# import sql dump
psql pia < pia_populated.sql

# connect to database pia
psql
\c pia;

# grant everything to user pia
grant all privileges on all tables in schema public to pia;

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

No branches or pull requests

2 participants