> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrades

> How PostgreSQL version upgrades work in ClickHouse Managed Postgres

export const galaxyOnClick = eventName => () => {
  try {
    if (typeof window !== "undefined" && window.galaxy && eventName) {
      window.galaxy.track(eventName, {
        interaction: "click"
      });
    }
  } catch (e) {}
};

export const BetaBadge = ({link, galaxyTrack, galaxyEvent}) => {
  if (link) {
    return <a href={link} target="_blank" rel="noopener noreferrer" className="betaBadge" onClick={galaxyTrack && galaxyEvent ? galaxyOnClick(galaxyEvent) : undefined}>
                <Icon />
                <span>Beta</span>
            </a>;
  }
  return <div className="betaBadge">
            <Icon />
            <span>
                Beta feature. 
                <u>
                    <a href="/docs/beta-and-experimental-features#beta-features">
                        Learn more.
                    </a>
                </u>
            </span>
        </div>;
};

Managed Postgres handles PostgreSQL version upgrades to keep your instances secure and up to date. Both minor and major version upgrades are supported with minimal disruption.

<h2 id="maintenance-updates">
  Maintenance updates
</h2>

Regular maintenance in the PostgreSQL instances includes the following:

* Minor version upgrades (e.g., 17.4 to 17.5) include bug fixes and PostgreSQL engine security patches.
* Managed Service features. Improvements to native CDC, observability, pg\_clickhouse, and other extensions.
* Operating system and system components patches. Including security fixes, efficiency, and other improvements.

These are performed via failover and typically result in only a brief disconnect, often lasting just a few seconds.

For instances with [standbys](/products/managed-postgres/high-availability) enabled, the upgrade is applied to the standby first, followed by a failover to minimize downtime.

<h2 id="maintenance-windows">
  Maintenance windows
</h2>

Default maintenance window is 14:00 to 16:00 UTC on Sunday.
Expected downtime is less than 1 minute within the window.

For Enterprise Tier organizations, Managed Postgres supports maintenance windows so that upgrades and other maintenance operations can be scheduled at a time that's least disruptive to your workload. UI and API support for configuring maintenance windows is coming soon. In the meantime, contact [support](https://clickhouse.com/support/program) to set up a maintenance window for your instance.

<h2 id="major-version-upgrades">
  Major version upgrades
</h2>

Major version upgrades (e.g., 17.x to 18.x) via UI and API are coming soon.
In the meantime, contact [support](https://clickhouse.com/support/program) to upgrade your Managed Postgres instance.
