↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 版本

pg_upgrade --swap

已记录的来源状态与原始语言说明;缺少版本证据时明确标为未知。

来源快照记录 PostgreSQL 8.1–18 的变化节点;历史矩阵独立记录 7.4–18 的状态。两者均未记录 PostgreSQL 19 或 20 的支持状态,较新版本明确保留为未知。这些来源声明与运行测量相互独立。

升级

说明

--swap 选项会把旧集簇的数据目录直接交换到新集簇,并用新版本生成的目录元数据替换之。

所选版本: PostgreSQL 18

支持

比较版本

原始文档链接

完整来源事实与出处

yaml · center · 1dd22bf9a7f3ec325b894e2836fda535a25529f246a94dd41d6abbfe9997f7fd

{
  "Key": "pg_upgrade-swap",
  "SourceKind": "yaml",
  "SourceDatabase": "center",
  "SourceTable": "featurematrix.yaml",
  "SourceKey": "pg_upgrade --swap",
  "SourceHash": "1dd22bf9a7f3ec325b894e2836fda535a25529f246a94dd41d6abbfe9997f7fd",
  "Name": "pg_upgrade --swap",
  "NameLocale": "en",
  "GroupKey": "upgrade",
  "GroupName": "Upgrade",
  "GroupLocale": "en",
  "Ordinal": 0,
  "GroupOrder": 11,
  "Facts": {
    "feature": {
      "description": "The `--swap` option moves the data directories from the old cluster to the new cluster and then replaces catalog files with those generated for the new cluster. See[`pg_upgrade`](https://www.postgresql.org/docs/18/pgupgrade.html) for more information.",
      "name": "pg_upgrade --swap",
      "versions": {
        "18": "Yes"
      }
    },
    "group": "Upgrade",
    "versions": {
      "max": 18,
      "min": 8.1
    }
  },
  "Cells": [
    {
      "Version": "10",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "11",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "12",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "13",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "14",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "15",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "16",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "17",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "18",
      "State": "yes",
      "EvidenceKind": "yaml-transition",
      "TransitionVersion": "18",
      "Supported": true,
      "Original": "Yes"
    },
    {
      "Version": "8.1",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "8.2",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "8.3",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "8.4",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "9.0",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "9.1",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "9.2",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "9.3",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "9.4",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "9.5",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    },
    {
      "Version": "9.6",
      "State": "no",
      "EvidenceKind": "yaml-default-no",
      "TransitionVersion": "",
      "Supported": false,
      "Original": "No"
    }
  ],
  "Texts": [
    {
      "Locale": "en",
      "Title": "pg_upgrade --swap",
      "BodyHTML": "\u003cp\u003eThe \u003ccode\u003e--swap\u003c/code\u003e option moves the data directories from the old cluster to the new cluster and then replaces catalog files with those generated for the new cluster. See\u003ca href=\"https://www.postgresql.org/docs/18/pgupgrade.html\" rel=\"nofollow\"\u003e\u003ccode\u003epg_upgrade\u003c/code\u003e\u003c/a\u003e for more information.\u003c/p\u003e\n",
      "SourceHash": "1dd22bf9a7f3ec325b894e2836fda535a25529f246a94dd41d6abbfe9997f7fd",
      "ContentHash": "5a8bce388d1df3df5b3a3a7623457c7ca8f8708f2fc8ce15170a34e6f7000a93",
      "Payload": {
        "description": "The `--swap` option moves the data directories from the old cluster to the new cluster and then replaces catalog files with those generated for the new cluster. See[`pg_upgrade`](https://www.postgresql.org/docs/18/pgupgrade.html) for more information.",
        "name": "pg_upgrade --swap",
        "versions": {
          "18": "Yes"
        }
      }
    },
    {
      "Locale": "zh-Hans",
      "Title": "pg_upgrade --swap",
      "BodyHTML": "\u003cp\u003e\u003ccode\u003e--swap\u003c/code\u003e 选项会把旧集簇的数据目录直接交换到新集簇,并用新版本生成的目录元数据替换之。\u003c/p\u003e\n",
      "SourceHash": "071091951021357a5f492adb04caed6febf4d315ac2626ca027a48dd8ec01d50",
      "ContentHash": "66c7df8bff523e0442f9476adef7db79a0abe05ad9e22bb6c39bf7165d790779",
      "Payload": {
        "description": "`--swap` 选项会把旧集簇的数据目录直接交换到新集簇,并用新版本生成的目录元数据替换之。",
        "name": "pg_upgrade --swap"
      }
    }
  ],
  "GroupTitles": {
    "en": "Upgrade",
    "zh-Hans": "升级"
  }
}

完整来源数据 JSON