From: Rob Sargent <robjsargent@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: list tablespaces named in custom format dump
Date: Mon, 23 May 2022 12:04:30 -0600
Message-ID: <c6f9c9dc-9d9d-1441-f1b7-5153f52878f3@gmail.com> (raw)
In-Reply-To: <6272f0ac-4faa-d86e-3f05-7736a4010b54@aklaver.com>
References: <29112dbe-b1bd-afe9-63d3-f7ba50ece939@gmail.com>
<9013c93e-3f01-f40a-4e14-7b1c9d7b065d@aklaver.com>
<caaf8cd5-5728-6b23-e74d-cc25d89b3a58@gmail.com>
<55cf2ca7-b431-b5bc-1b86-b6c8726ac4c5@aklaver.com>
<2904d7b9-3bf0-fee0-f043-c8f904fc6c1d@gmail.com>
<78db98f0-0e1b-d744-25fd-5390d720e2b8@aklaver.com>
<66d925ce-5a4e-e3e0-583a-f1c2574948dc@gmail.com>
<6272f0ac-4faa-d86e-3f05-7736a4010b54@aklaver.com>
On 5/23/22 11:51, Adrian Klaver wrote:
> On 5/23/22 10:19 AM, Rob Sargent wrote:
>> On 5/23/22 11:07, Adrian Klaver wrote:
>>> On 5/23/22 10:01 AM, Rob Sargent wrote:
>>>> On 5/23/22 11:00, Adrian Klaver wrote:
>>>>> On 5/23/22 9:54 AM, Rob Sargent wrote:
>>>>>> On 5/23/22 10:50, Adrian Klaver wrote:
>>>>>
>
>>>
>> This is great news. I do have pg14. I thought you had to dump with
>> the save version as restore
>
> pg_dump and pg_restore are backwards compatible. The recommendation is
> to use the same version of pg_dump as the server you are dumping if
> the plan is use it as backup to restore to same version of server. If
> you are planning on restoring to newer version then use the newer
> version of pg_dump to dump the older server version e.g. version 14
> pg_dump dumps version 12 Postgres server. Then use the newer version
> of pg_restore(14 in this case) to restore to the Postgres 14 server.
>
> For the purposes of this question using the 14 version of pg_restore
> is acceptable to get the information. Actually doing a restore to a 14
> version of the server with 12 version of a dump file may create
> problems as the 12 version of pg_dump may not include information
> needed by the newer server.
>
>
Thanks Adrian. There's enough wiggle room in there for me to at least
try the restore. Linus file command tells me
db.dump: PostgreSQL custom database dump - v1.13-0
That dump was from a version 10 server. Any guess at how that "v1.13-0"
relates to the server version? Dumps from the current pg14 server say
"v1.14-0" so it looks to me like the dumps were done with v13
pg-restore. This surprises me, but I do not manage the server. Maybe
my dump file doesn't have anything pg14 restore can't handle.. we'll see
Thanks again, all.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com, adrian.klaver@aklaver.com
Subject: Re: list tablespaces named in custom format dump
In-Reply-To: <c6f9c9dc-9d9d-1441-f1b7-5153f52878f3@gmail.com>
References: <29112dbe-b1bd-afe9-63d3-f7ba50ece939@gmail.com> <9013c93e-3f01-f40a-4e14-7b1c9d7b065d@aklaver.com> <caaf8cd5-5728-6b23-e74d-cc25d89b3a58@gmail.com> <55cf2ca7-b431-b5bc-1b86-b6c8726ac4c5@aklaver.com> <2904d7b9-3bf0-fee0-f043-c8f904fc6c1d@gmail.com> <78db98f0-0e1b-d744-25fd-5390d720e2b8@aklaver.com> <66d925ce-5a4e-e3e0-583a-f1c2574948dc@gmail.com> <6272f0ac-4faa-d86e-3f05-7736a4010b54@aklaver.com> <c6f9c9dc-9d9d-1441-f1b7-5153f52878f3@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox