Postgresql Flexble server on-demand backup

subhash-DBA 135 Reputation points
2025-03-16T23:04:37.28+00:00

HI Microsoft,

I was doing a test of the preview feature 'on-demand' backup for Azure PostreSQL flexing instance.

When I clicked "Backup (Preview)" option under Settings ==> Backup it started the backup as expected but I noticed that the Flexible instance status turned from "Ready" to "Updating"

Any reason why the database goes down when backup?

Azure Database for PostgreSQL
{count} votes

Accepted answer
  1. PratikLad 1,825 Reputation points Microsoft External Staff Moderator
    2025-03-19T09:23:16.98+00:00

    Hi subhash-DBA,

    Any reason why the database goes down when backup?

    When performing an on-demand backup, the server will enter an updating state. During this time, server management operations such as modifying server parameters, changing high availability options, or adding or removing firewalls will be unavailable.

    This status change indicates that the system is performing maintenance operations to ensure data consistency during the backup process. It's important to note that the updating state only affects server management operations and does not affect data plane operations.

    This means that your database server will remain fully functional and able to accept connections, as well as serve read and write traffic.


4 additional answers

Sort by: Most helpful
  1. subhash-DBA 135 Reputation points
    2025-03-21T04:54:32.74+00:00

    @PratikLad

    Thanks for your response.

    0 comments No comments

  2. Suwarna S Kale 3,316 Reputation points
    2025-03-17T02:17:06.68+00:00

    Hello subhash-DBA,

    Thank you for posting your question in the Microsoft Q&A forum.

    The behavior you're observing, where the Azure PostgreSQL Flexible Server instance status changes from "Ready" to "Updating" during an on-demand backup, is expected and occurs due to the underlying architecture and process of how backups are handled in Azure PostgreSQL Flexible Server.

    Azure PostgreSQL Flexible Server uses a snapshot-based backup mechanism for on-demand backups. This involves creating a point-in-time snapshot of the storage volume associated with the database. To ensure data consistency during the backup process, the database instance may need to temporarily pause certain operations or enter a state where it is not fully accessible.

    Few insights on why status changes to “Updating”:

    • Storage-Level Snapshot: When you initiate an on-demand backup, Azure triggers a storage-level snapshot. This requires the database to briefly pause write operations to ensure the snapshot is consistent.
    • Instance State: During this process, the instance status changes to "Updating" to reflect that the database is in a transitional state while the backup is being taken.
    • Temporary Impact: While the backup is in progress, the database may experience a brief period of reduced availability or performance, depending on the workload and the size of the database.

    Some recommended best practices as below:

    • Schedule Backups During Off-Peak Hours: If you are concerned about the impact of on-demand backups, consider scheduling automated backups during periods of low activity.
    • Monitor Backup Duration: Keep an eye on how long the backup process takes. If the "Updating" state persists for an unusually long time, investigate potential issues with the database or storage.
    • Use Read Replicas: If high availability is critical, consider using read replicas to offload read traffic during backup operations.

    The status change to "Updating" during an on-demand backup is a normal part of the backup process for Azure PostgreSQL Flexible Server. It ensures data consistency and is typically short-lived. If the behavior persists or causes significant downtime, you may want to review your database configuration.

    If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated.


  3. subhash-DBA 135 Reputation points
    2025-03-17T23:02:09.23+00:00

    Thanks a lot again for your responses @Mallaiah Sangi

    So, if this is(Write pause) part of daily backup, then - what is the impact to connected applications/clients during that time?

    Note that there are no option to schedule automated backup from customer side, it happens automatically. For example, for our workload running for Australia the backup timings are in the middle of the day (times show below are in UTC). so wondering how that impacts to our transaction

    User's image


  4. subhash-DBA 135 Reputation points
    2025-03-18T08:22:01.9466667+00:00

    @Mallaiah Sangi

    I think you are not answering the questions , let me phrase it this way.

    1. What's the impact to connected applications/sessions/clients when backup happens (backup leads to 'write pause') . You have mentioned earlier that 'write pause' happen for both on-demand and 'automated daily' backup.
    2. Scheduling the backup 'non-business hours' : There are no options to schedule "automated backup" (the default snapshot backup i mean) for Azure PostgreSQL flexible instance. So what do you mean by the best practice of scheduling backup ?
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.