Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntCAf-0002Jo-DI for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:48:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntCAe-0002TD-9y for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 17:48:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntCAd-0002RJ-VY for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:48:43 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ntCAb-0004Ao-OY for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 17:48:42 +0000 Received: by mail-pj1-x102f.google.com with SMTP id z11so4879606pjc.3 for ; Mon, 23 May 2022 10:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=rT+lC6dV6KxPY1eH1RKPDKih1+OKBnZq0ylwT9DFO+Y=; b=WIkyQl7BnDV7owcmSa17fay4DtW6zC7yuqt2xNK358xq+opCgBIkB3VgaKSaCYE2cK FZ6EQRsmJ8lA2ZOKAd6i8KHksOmW5VmShkWSmW/VcsP3nwLVwJj3b2sUj1Ftf+rA0w9G Z6BL3nLsU4R4C+VocO8EHZWxyB+j2dmKWtTRDaPMAySAacpBz3Ivei58UfRwINwPN0QM gdGh3t/5TQyyrrNufIDBQxszDozYa1P6v2qTfnrgXB0Lw7MR4yFD85Jmh+ApRdeBl8Ld CX9p8d0xdEiUSCLet7kw0WPPNFmkskSrzcWpZYAZPc5pnkxPELMLHzTJqG+hKPeaJoI5 moPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=rT+lC6dV6KxPY1eH1RKPDKih1+OKBnZq0ylwT9DFO+Y=; b=oZdO6bDpcodoT0d3jrNpGxMmvYJI/506TT7Zixd4SbPsRQh2xGkw4JiqO4l1kmDGhu MB7Z0ELIGCS0kpEjitBPz7FhQ1I6XXFmlYaVSAT9/exaM6c04Qac5vmeH2C7oyX1QIXF K+hqXu3dhEp0i4cFEwiPoyyQHE1ayXbLEglENH4FFdopoLbTlUbgJ1HUM5N1scD5G9rP eXRfwJZEZ++utPp3jgN8yX9WWmKuziPeeEAB1gIDB1wFO2y1tgamVxXdM9+J3chsbJyd /WIUuFVc4fiVNjlmOfc6OcpMl9oQlT50qj+DRJxXZ89IyDpjShUmX/lVEbdk6oRkBBQA LOBA== X-Gm-Message-State: AOAM533jibxSgRHSFpPpxJ+702BY/7Jpgk69Kl+eRCH8WyltAZOn03xW rHRB1zXvKGytytimHm71eBM= X-Google-Smtp-Source: ABdhPJz1xcbJt1oKBmhVx+6hLKmZxhVj1pf/sBfHGx7YSMLLmedVjgyE0KdbDtfIiNK+dl1GyLA5Ig== X-Received: by 2002:a17:902:ccd0:b0:156:7ac2:5600 with SMTP id z16-20020a170902ccd000b001567ac25600mr23630267ple.156.1653328120746; Mon, 23 May 2022 10:48:40 -0700 (PDT) Received: from [10.128.71.194] ([155.98.131.2]) by smtp.gmail.com with ESMTPSA id b9-20020a17090a010900b001cd4989fed4sm7602741pjb.32.2022.05.23.10.48.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 10:48:39 -0700 (PDT) Message-ID: <3e425950-e969-bd6a-20f7-7541358b5afd@gmail.com> Date: Mon, 23 May 2022 11:48:38 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: list tablespaces named in custom format dump Content-Language: en-CA To: Tom Lane , Adrian Klaver Cc: "pgsql-generallists.postgresql.org" References: <29112dbe-b1bd-afe9-63d3-f7ba50ece939@gmail.com> <9013c93e-3f01-f40a-4e14-7b1c9d7b065d@aklaver.com> <55cf2ca7-b431-b5bc-1b86-b6c8726ac4c5@aklaver.com> <1292868.1653326958@sss.pgh.pa.us> From: Rob Sargent In-Reply-To: <1292868.1653326958@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.