Trying to import a nightly production backup locally, I ran into this:
pg_restore: [archiver] unsupported version (1.14) in file header
Now, as to what to do in such a case, the question has been asked before or see here too.
I'm still left with some corollary questions though:
- How can I check which version of the archive format a Postgres dump uses, from the command-line?
- How do I know which Postgres versions support which versions of the archives format?
I see no obvious link between Postgres versions and Postgres archive formats, meanwhile searching Google or Postgresql.org for "1.14" did not help.
In my case:
- While I can still import dumps produced by Heroku Postgres itself, the nightly export (produced by the Autobus add-on) produces archive versions I can't import locally.
- Upgrading from Postgres 9.6.14 to 9.6.16 did not help. (I take it Autobus is using some Postgres version > 9.6.)
I'd like to know when they changed archive formats by looking up the info for the last X dumps… and from there what my options/requirements are for importing their dumps.