From: Rob Sargent <robjsargent@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: list tablespaces named in custom format dump
Date: Mon, 23 May 2022 11:48:38 -0600
Message-ID: <3e425950-e969-bd6a-20f7-7541358b5afd@gmail.com> (raw)
In-Reply-To: <1292868.1653326958@sss.pgh.pa.us>
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>
<1292868.1653326958@sss.pgh.pa.us>
On 5/23/22 11:29, Tom Lane wrote:
>
> AFAICS, the output produced by -l doesn't mention objects' tablespaces.
> You could see them by extracting the plain text archive and grepping
> for object comments that include a tablespace name:
>
> pg_restore -s -f - archive_file | grep Tablespace:
>
> It looks to me like that will only appear for tables with non-default
> tablespaces.
>
> regards, tom lane
That worked, thank you. I see it has only the "name" so I presume
location can be redefined in the receiving cluster.
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, tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com
Subject: Re: list tablespaces named in custom format dump
In-Reply-To: <3e425950-e969-bd6a-20f7-7541358b5afd@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> <1292868.1653326958@sss.pgh.pa.us> <3e425950-e969-bd6a-20f7-7541358b5afd@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