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 1ntDhk-0007r8-Qp for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 19:27:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntDhj-0005Ju-DH for pgsql-general@arkaria.postgresql.org; Mon, 23 May 2022 19:26:59 +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 1ntDhi-0005Jj-VQ for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 19:26:59 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ntDhc-0004xg-E6 for pgsql-general@lists.postgresql.org; Mon, 23 May 2022 19:26:57 +0000 Received: by mail-pj1-x1030.google.com with SMTP id ob14-20020a17090b390e00b001dff2a43f8cso292188pjb.1 for ; Mon, 23 May 2022 12:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=zTxk2O4BgQp57X2pJSiVXeqZnubdeR/ZBQTbq3v2CU4=; b=kWCnHZ1LZtTTh5s8EfCm2ekNao8Mb9o3cgiCVcgKgwOT5Z9J3zq0N5W9KSfrMvSPNx jmjZ33Cih1msfvu+MFMGOI7l/3PUM6JdZfStxgnKYUpVdGI+rGYI4vyXa4WHIU1AQIAJ VfdmSf+CFh89K9st+tTxNAn0vMnJBN1BZtWpebVinCJ3cA0tuSYfxXgeYKlDJ/ym8mPp NQw1SPP9gd8vQ39mz9jwSIpYbtjEDAdjII/XOzW/CDZBExpXd5USsL/rDDksvQa3BpKo HGPDVJqywPe0KhC6TdBD6ja6pndIIUNi80ujw9jyx8gsUBkP0KHe8E8om9ujte21TvgD 3I2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=zTxk2O4BgQp57X2pJSiVXeqZnubdeR/ZBQTbq3v2CU4=; b=NGmGAmxsSpAld71MQs3ZPXJiWovFQ4RXdjdeMhQPBK2FqSMiPnpOzex7y8oYmnbAxc BT/e+9MVX9+yPlsMpcc9ZbnJ+bd1LlJ9dsFTZJwHpu7quNjHUf3ajBbu4DImsCTBSuL9 FE3jtKacXBYCdHhYKyS971QA/KFkDsLlRzUl2F0rbKlllMxpKqE6cvWfH065pebdhZjX zICTttvhwRYCNQKVbUAWSW+6UPeD/IfFWLnT676rJZMxGjhDSXGnYtTooJLJhFuzNhKe F5G0B1A2MOVCXKdBdj4AV+q0jZIOlbJx6SHMRp8Bbq6EOGZbSHvsTze5uUrJ2Pq97ZlL 4Sqw== X-Gm-Message-State: AOAM531xtVpyBY5bxm9h6RHmgV8yUXZnnXGkZRhEB80NIXpunXWKlgYx /S8D/M22a1COC/sl/DxDq3w= X-Google-Smtp-Source: ABdhPJxlXJ65KO1p+mks98rNO+iVRJ0PvuFXUx4f3vU8M+Cd2puClfrdLXsaBUa3KKUXDb3MQVRK+Q== X-Received: by 2002:a17:902:d2cb:b0:162:9fd:84c5 with SMTP id n11-20020a170902d2cb00b0016209fd84c5mr11947218plc.18.1653334011196; Mon, 23 May 2022 12:26:51 -0700 (PDT) Received: from smtpclient.apple (c-71-195-204-99.hsd1.ut.comcast.net. [71.195.204.99]) by smtp.gmail.com with ESMTPSA id q16-20020a170902eb9000b001615ca9ab2asm5440644plg.20.2022.05.23.12.26.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 May 2022 12:26:50 -0700 (PDT) From: Rob Sargent Message-Id: <82F39D73-E439-4F49-91A9-BDF30630C6A7@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_E948BA90-501C-428A-9DEB-1C44F4DBA0AF" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: list tablespaces named in custom format dump Date: Mon, 23 May 2022 13:26:48 -0600 In-Reply-To: <756c6a6f-08c0-39f3-a697-516ee3acd77c@aklaver.com> Cc: "pgsql-generallists.postgresql.org" To: Adrian Klaver 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> <4592d00b-23e9-3982-84f7-c376932ac5cc@gmail.com> <756c6a6f-08c0-39f3-a697-516ee3acd77c@aklaver.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_E948BA90-501C-428A-9DEB-1C44F4DBA0AF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 23, 2022, at 12:59 PM, Adrian Klaver = wrote: >=20 > On 5/23/22 11:31, Rob Sargent wrote: >> On 5/23/22 12:15, Tom Lane wrote: >=20 >>>=20 >>> pg_restore -f - db.dump | head >>>=20 >>> which should provide some comments telling you the originating >>> server version and pg_dump version. >>>=20 >>> 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. >=20 > Different view of the information. >=20 > pg_restore -l has more detail, but all you are interested in is this: >=20 > -- Dumped from database version 14.2 > -- Dumped by pg_dump version 14.2 >=20 > anyway. >=20 > As to older version, how are you installing Postgres? >=20 >=20 >> Much appreciated, >> rjs Yeah, that=E2=80=99s part of the problem. I=E2=80=99m not installing = postgres, another group has that control. I can get the answer for = version 14 but maybe not for version 10. Currently these are =E2=80=9CRoc= ky Linux=E2=80=9D but the pg14 install could have been done on CentOS8. = CentOS for version 10. I=E2=80=99ll see if I can nail that = down. --Apple-Mail=_E948BA90-501C-428A-9DEB-1C44F4DBA0AF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On May 23, 2022, at 12:59 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:

On = 5/23/22 11:31, Rob Sargent wrote:
On 5/23/22 12:15, Tom Lane wrote:


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.

Different view of the information.

pg_restore -l has more detail, but all you are interested in = is this:

-- Dumped from database version = 14.2
-- Dumped by pg_dump version 14.2

anyway.

As to older version, how = are you installing Postgres?


Much appreciated,
rjs

Yeah, that=E2=80=99s part of the problem.  I=E2=80=99m not installing postgres, another group = has that control.  I can get the answer for version 14 but maybe = not for version 10.  Currently these are =E2=80=9CRocky = Linux=E2=80=9D but the pg14 install could have been done on CentOS8. =  CentOS<something> for version 10.  I=E2=80=99ll see if = I can nail that down.

= --Apple-Mail=_E948BA90-501C-428A-9DEB-1C44F4DBA0AF--