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 1ntCpu-0004lz-Pz for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:31:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntCpt-0000fr-6U for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 18:31:21 +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 1ntCps-0000fi-QL for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:31:20 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ntCpq-0004a7-HI for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 18:31:19 +0000 Received: by mail-pf1-x431.google.com with SMTP id z25so1735493pfr.1 for ; Mon, 23 May 2022 11:31:18 -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; bh=UTYw32xluyI6sQiNtec6EhXKIEye/8A1+dLWxaX7A2g=; b=Hh+pzyngmY4h08OyBVPRiuMchSLotDZc4SPaLbiA2bJZr2Hxv0SuGj4FXYdPs0o2L9 VbZtjMO8cxBA04tjs5o1E0q4YC2ttCuqPdRkIcM/Sl5/GtL106/HTx3t6vHk7As9fewB vVc5chvZ2ubnps8o0x1zjmT/NjEyBJwHbX4jriqGFHttXaWOeKmZ2YfI8W7+D1J8cTvf 4jUXyrUVCQj05WiaihEWHvafI1Ktbuv283HdtPH2w4a2eGhb1k62GS/1x2WLpinTIIjg HQBHaGdKmFKXmXrC8g+7JQ277VctiGAOB4V3D03g9YFz6Z/DcGspFVMRUAGTfYaenlvO 60PA== 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; bh=UTYw32xluyI6sQiNtec6EhXKIEye/8A1+dLWxaX7A2g=; b=ZI5BLs82M8jAzQidOS+pqyYScIglnRmSgvk+f3TR9xV6DhyEJacUROVy0nhFi/ei/k q3wDVxr4cb/bSxIVPQDXI8LIfSaGDj3x9QluI8INodKQGq0APKXIgG1gWNpK8ijJ9cmY 6tZCLcHrGDx63pAun4L+QGO1rRX3XIp1KekIJ1EpdtQ/r2uwtVwbvM6zFlrn7QahNOuu ATv2SIfOAbJMDhyzJOuXT2JWg+N/1dhAMXtZ1LXQKJQPvfuXjW32gNTkFXZN8djmWQbg yjHqq7mwtDRS5RfVM+yvo4zbq9zVrBaDuj4d5QcSxVHYa2BOxOrXTawIwvr+3YSxgWO3 QHAA== X-Gm-Message-State: AOAM5314FMceYhJL8XVbTRgDFsun0a1xN80fn/S0CfeAiWJbb9m7E6ld Vlf5cfYREgdHFxwZAZ4hQik= X-Google-Smtp-Source: ABdhPJxuMHi+6ImNw2S+Q3agaJ1AWm2tLemPzUibX4cauiSPDcuxX/eU/PvRgWKtq42HmkjLuQarkw== X-Received: by 2002:a63:6705:0:b0:3c1:976d:bd68 with SMTP id b5-20020a636705000000b003c1976dbd68mr21307396pgc.133.1653330677494; Mon, 23 May 2022 11:31:17 -0700 (PDT) Received: from [10.128.71.194] ([155.98.131.2]) by smtp.gmail.com with ESMTPSA id r8-20020a17090a940800b001df51dd0c93sm144463pjo.1.2022.05.23.11.31.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 11:31:16 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------D0ssHm6H65cs1oT0avMXLur1" Message-ID: <4592d00b-23e9-3982-84f7-c376932ac5cc@gmail.com> Date: Mon, 23 May 2022 12:31:15 -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 Cc: Adrian Klaver , "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> <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> <1304637.1653329702@sss.pgh.pa.us> From: Rob Sargent In-Reply-To: <1304637.1653329702@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------D0ssHm6H65cs1oT0avMXLur1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/23/22 12:15, Tom Lane wrote: > Rob Sargent writes: >> 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? > It doesn't, it's just a more-or-less-magic identifier for the dump > file's format version, with no connection to any user-visible > release number. What you should try is > > pg_restore -f - db.dump | head > > which should provide some comments telling you the originating > server version and pg_dump version. > > regards, tom lane OK, back to reality: version 10 dump. The output of from head command is very different that Adrian shows but I'm still left giving pg_restore(14) a shot.  Getting older server will be challenging. Much appreciated, rjs --------------D0ssHm6H65cs1oT0avMXLur1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 5/23/22 12:15, Tom Lane wrote:
Rob Sargent <robjsargent@gmail.com> writes:
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?
It doesn't, it's just a more-or-less-magic identifier for the dump
file's format version, with no connection to any user-visible
release number.  What you should try is

pg_restore -f - db.dump | head

which should provide some comments telling you the originating
server version and pg_dump version.

			regards, tom lane

OK, back to reality: version 10 dump. 

The output of from head command is very different that Adrian shows but I'm still left giving pg_restore(14) a shot.  Getting older server will be challenging.

Much appreciated,
rjs


--------------D0ssHm6H65cs1oT0avMXLur1--