The following bug has been logged on the website:
Bug reference: 14587
Logged by: Milos Urbanek
Email address: milos(dot)urbanek(at)email(dot)cz
PostgreSQL version: 9.6.2
Operating system: Windows
Description:
As repoted in https://trac.osgeo.org/postgis/ticket/3727
If there is some newline in e.g. foreign key contraint, the second command
below fails:
pg_restore -l test.backup > test.backup.lst
pg_restore -L test.backup.lst > test2.out
With error like:
pg_restore: [archiver] could not find entry for ID 6