Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlBxf-001fwu-41 for pgsql-docs@arkaria.postgresql.org; Tue, 26 Sep 2023 17:35:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qlBxd-00DhAl-IC for pgsql-docs@arkaria.postgresql.org; Tue, 26 Sep 2023 17:35:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlBxd-00DhAT-9W for pgsql-docs@lists.postgresql.org; Tue, 26 Sep 2023 17:35:01 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlBxa-006m8T-HK for pgsql-docs@lists.postgresql.org; Tue, 26 Sep 2023 17:35:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=jGw5tJfuF6WD44jKfJVs4U+05W0gGhAHCON3ChiK5yo=; b=NtVD/ bkdJYQCVdaq5eHPH7g/Bod87xae9RLxlyWXY/RfTVUSOMbSzY5TUfigYljsmNmhPbNNkoO4wRlNlP dlW4KiSpyG/GajnRP9pvk9HK3+VC5wF35xyBSZw1gB/07iGknkgfwZDyhgRV57jBSORKLYvbSEltL MfsPhN0x5gNK3UdUC/1/MZLJtWm8/OatYypHLABJMUcrV8KPN8b0uznGz9hR+8Yhk16ufQ+wB6YXg uw5zA4kXtNPNUmjkBZIynMeDbe0Ce1I7B6RxSxr9rLbxOVkTC4zBmxAUgNr7fjrcSQuwS6p08hiSE SKd1fJDUTYxXvRxJZTmypMu3MV1Rg==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qlBxY-00GQsg-2z; Tue, 26 Sep 2023 13:34:56 -0400 Date: Tue, 26 Sep 2023 13:34:56 -0400 From: Bruce Momjian To: mark.a.sloan@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: pg_upgrade doc uses inconsistent versions within the doc. Message-ID: References: <169506804412.3727336.8571753495127355296@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="HG1lXbT9nj8nVAbu" Content-Disposition: inline In-Reply-To: <169506804412.3727336.8571753495127355296@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --HG1lXbT9nj8nVAbu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 18, 2023 at 08:14:04PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/16/pgupgrade.html > Description: > > I feel like for readability the pg_upgrade doc should use the same > old_version and new_version examples when showing examples throughout the > doc page. > > as an exmaple I'm looking at : > https://www.postgresql.org/docs/current/pgupgrade.html > > in some places the example commands use v9.6 and v16. (see step 8) > > but in other places it mixes versions v9.5 and v9.6 (see step 11 sub step 8) Good point. I came up with the attached patch. It uses 9.6 and current --- the only problem is that the target directory is now: /vol1/pg_tblsp/PG_&majorversion;_202307071 --------- and since the catalog version is not accessible from SGML, it will usually not match the major version's catalog number. I would apply this only to Postgres 17 since it isn't really a fix. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you. --HG1lXbT9nj8nVAbu Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="upgrade_version.diff" diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml index bea0d1b93f..dc9e52a684 100644 --- a/doc/src/sgml/ref/pgupgrade.sgml +++ b/doc/src/sgml/ref/pgupgrade.sgml @@ -605,8 +605,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive old_cluster remote directory, e.g., -rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5 \ - /opt/PostgreSQL/9.6 standby.example.com:/opt/PostgreSQL +rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.6 \ + /opt/PostgreSQL/&majorversion; standby.example.com:/opt/PostgreSQL You can verify what the command will do using @@ -635,8 +635,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/Postgr rsync command for each tablespace directory, e.g.: -rsync --archive --delete --hard-links --size-only --no-inc-recursive /vol1/pg_tblsp/PG_9.5_201510051 \ - /vol1/pg_tblsp/PG_9.6_201608131 standby.example.com:/vol1/pg_tblsp +rsync --archive --delete --hard-links --size-only --no-inc-recursive /vol1/pg_tblsp/PG_9.6_201608131 \ + /vol1/pg_tblsp/PG_&majorversion;_202307071 standby.example.com:/vol1/pg_tblsp If you have relocated pg_wal outside the data --HG1lXbT9nj8nVAbu--