共用方式為


適用於 PostgreSQL 的 Azure 資料庫 - 彈性伺服器的支援矩陣

您可以使用 Azure 備份 來保護適用於 PostgreSQL 的 Azure 資料庫- 彈性伺服器。 本文將摘要說明支援的區域、案例和限制。

支援的區域

PostgreSQL 的保存庫備份 – 彈性伺服器已在所有公用雲端區域和主權區域中正式推出。

支援案例

當您備份適用於 PostgreSQL 的 Azure 資料庫 – 彈性伺服器時,請考慮下列支援案例:

  • 保存庫備份還原僅適用於在使用者指定的記憶體容器中 還原至檔案 。 您可以使用資料庫原生工具,將此數據還原為新的 PostgreSQL - 彈性伺服器。
  • 當備份保存庫與資料庫位於相同或不同的訂用帳戶中,前提是備份保存庫位於相同的租用戶和區域內,則支援 PostgreSQL 伺服器的備份。 跨區域(Azure 配對)和相同租使用者內的訂用帳戶支援還原。
  • 針對保存庫備份,整個伺服器會以所有資料庫進行備份。 不支援備份特定資料庫。
  • 伺服器大小 <= 1 TB 支援儲存庫備份。 如果在大於 1 TB 的伺服器大小上設定備份,備份作業就會失敗。
  • PostgreSQL - 支援由客戶管理金鑰加密的彈性伺服器。
  • PostgreSQL 彈性伺服器的備份會排除 或 azuresu所擁有的azure_pg_admin資料庫,包括原生 PostgreSQL 資料庫。 因此,無法備份或還原具有這些擁有者的資料庫。
  • 還原作業的建議頻率是一天一次。 在一天內觸發的多個還原作業可能會失敗。

限制

適用於 PostgreSQL 的 Azure 資料庫 – 彈性伺服器備份包含下列限制:

  • 保存庫備份不支援封存層中的記憶體。
  • 復本不支援保存庫備份;備份只能在主伺服器上設定。
  • 針對還原作業,不支援專案層級復原(復原特定資料庫)。
  • 對於保存庫備份,目前僅支援每週一次備份。 如果一周內排程多個保存庫備份,則只會執行一周的第一個備份作業,而相同星期的後續備份作業會失敗。
  • 保存的備份不支援包含 BYTEA 長度超過 500 MB 的數據列的數據表。
  • 保存庫備份僅支援完整備份;不支援增量或差異備份。

還原限制

  • 針對、 azure_su、 、 azure_pg_adminreplication 使用localadmin文稿Entra Admin,會在還原時在另一個彈性伺服器上造成下列錯誤,您可以放心地忽略這些錯誤。

    • role "azure_pg_admin" already exists.
    • role "azuresu" already exists.
    • role "replication" already exists.
    • ERROR: must be superuser to create superusers
    • ERROR: Only roles with privileges of role "azuresu" may grant privileges as this role. permission denied granting privileges as role "azuresu"
    • ERROR: permission denied granting privileges as role "azuresu" SQL state: 42501 Detail: Only roles with privileges of role "azuresu" may grant privileges.
    • Ignore any errors related to pg_catalog, pg _aadauth extensions as it is owned by azure_su and localadmin does not have access to directly create this extension on flexible server, but these are automatically created on new flexible servers or when you enable Microsoft entra authentication.
    • ERROR: Only roles with the ADMIN option on role "pg_use_reserved_connections" may grant this role. permission denied to grant role "pg_use_reserved_connections"
    • ERROR: permission denied to grant role "pg_use_reserved_connections" SQL state: 42501 Detail: Only roles with the ADMIN option on role "pg_use_reserved_connections" may grant this role.
  • 在 PostgreSQL 社群第 16 版中,已移除超使用者許可權設定略過數據列 -level 安全性 (RLS) 屬性的需求。 因此,在 16 版和更新版本中,您可以將略過 RLS 授與azure_pg_admin允許其他人設定 RLS。 對於低於 16 的版本,略過屬性只會授與伺服器管理員,而且沒有其他非監督者角色。

  • 如果您在還原之後使用 Entra Admins,可能會遇到 擁有者變更問題 :作為因應措施,請使用 授與 選項來提供擁有權。

下一步