Re: list tablespaces named in custom format dump - Mailing list pgsql-general

From Tom Lane
Subject Re: list tablespaces named in custom format dump
Date
Msg-id 1292868.1653326958@sss.pgh.pa.us
Whole thread Raw
In response to Re: list tablespaces named in custom format dump  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: list tablespaces named in custom format dump
List pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 5/23/22 9:54 AM, Rob Sargent wrote:
>> Roger that, but does the dump of a database name the tablespaces from 
>> which the objects were retrieved? And if so, is that accessible?

> Would indicate it does. I don't have cluster set up with tablespaces to 
> test, but I would try:
> pg_restore -l <custom_format_file>

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



pgsql-general by date:

Previous
From: "dzagashev@gmail.com"
Date:
Subject: psql connect over ssl load balancer
Next
From: Tom Lane
Date:
Subject: Re: psql connect over ssl load balancer