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

Loading & saving dump file produced invalid dump file #6

Open
whtsky opened this issue Jan 22, 2021 · 2 comments
Open

Loading & saving dump file produced invalid dump file #6

whtsky opened this issue Jan 22, 2021 · 2 comments

Comments

@whtsky
Copy link
Contributor

whtsky commented Jan 22, 2021

the dump is obtained using

pg_dump -Fc -d balisong -t django_migrations > out

out.zip

>>> pg_restore -d tmp --clean out
(works)

But pgdumplib will produce an invalid dump file:

import pgdumplib
pgdumplib.load('out').save('outd')
>>> pg_restore -d tmp --clean outd
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 317; 1259 7739671 SEQUENCE django_migrations_id_seq balisong
pg_restore: error: could not set default_table_access_method: ERROR:  zero-length delimited identifier at or near """"
LINE 1: SET default_table_access_method = "";
@gmr
Copy link
Owner

gmr commented Mar 18, 2021

What version of Postgres and pg_dump/pg_restore?

@whtsky
Copy link
Contributor Author

whtsky commented Mar 19, 2021

>> pg_dump --version
pg_dump (PostgreSQL) 13.1
>> postgres --version
postgres (PostgreSQL) 13.1

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

No branches or pull requests

2 participants