Skip to content

Add branch maintenance window and event commands - #1492

Merged
hiradp merged 1 commit into
mainfrom
hiradp/postgres-maintenance-commands
Oct 29, 2026
Merged

hiradp merged 1 commit into
mainfrom
hiradp/postgres-maintenance-commands

Conversation

@hiradp

@hiradp hiradp commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Add commands to view and set a Postgres branch's maintenance window, and to list, show and reschedule its scheduled maintenance.

pscale branch maintenance window show <database> <branch>
pscale branch maintenance window set <database> <branch> [--day <day>] [--hour <0-23>]
pscale branch maintenance event list <database> <branch> [--state <state>]
pscale branch maintenance event show <database> <branch> <event>
pscale branch maintenance event reschedule <database> <branch> <event> --to <time>
  • The window's day and hour are in UTC. window show also prints the next window in local time, and window set sends nothing when the window wouldn't change.
  • reschedule --to must be one of the event's available times. The command checks it before sending and lists the valid times when it isn't one.
  • The client gains MaintenanceSchedules.Update and a MaintenanceEvents service. Schedules now include their branch, which pscale maintenance list and show print in a new column.
  • The branch maintenance help no longer says images are upgraded only in emergencies.

Security Impact: None

@hiradp
hiradp force-pushed the hiradp/postgres-maintenance-commands branch from 7c2e36a to c40cacc Compare October 29, 2026 01:28
@hiradp
hiradp marked this pull request as ready for review October 29, 2026 16:25
@hiradp
hiradp requested a review from a team as a code owner October 29, 2026 16:25
@hiradp
hiradp force-pushed the hiradp/postgres-maintenance-commands branch from c40cacc to bb7ea40 Compare October 29, 2026 17:18
@hiradp
hiradp merged commit 3961c7e into main Oct 29, 2026
4 checks passed
@hiradp
hiradp deleted the hiradp/postgres-maintenance-commands branch October 29, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants