Re: Add GoAway protocol message for graceful but fast server shutdown/switchover

From: Ajit Awekar <ajitpostgres(at)gmail(dot)com>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: Kirill Reshke <reshkekirill(at)gmail(dot)com>, Jelte Fennema-Nio <me(at)jeltef(dot)nl>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Dave Cramer <davecramer(at)gmail(dot)com>, Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: Re: Add GoAway protocol message for graceful but fast server shutdown/switchover
Date: 2025-12-01 05:05:19
Message-ID: CAER375Nugod9uuowwEUAai9PpoXP2xD-G54MW6hhjQw-6LtSLQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Jelte,

Thank you for proposing the GoAway protocol message.

I've developed a patch that serves as a strong, immediate use case for its
inclusion.
https://www.postgresql.org/message-id/flat/CAER375OvH3_ONmc-SgUFpA6gv_d6eNj2KdZktzo-f_uqNwwWNw%40mail.gmail.com

Thanks & Best Regards,

Ajit

On Fri, 24 Oct 2025 at 17:24, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl> wrote:

> On Fri Oct 24, 2025 at 7:04 AM CEST, Kirill Reshke wrote:
> > On Thu, 23 Oct 2025 at 18:05, Jelte Fennema-Nio <me(at)jeltef(dot)nl> wrote:
> > Im +1 on this idea. This is something I wanted back in 2020, when
> > implementing the 'online restart' feature for odyssey[0], but never
> > bothered to create a thread.
>
> Yeah, to be clear: A big goal of this is definitely to be used by
> poolers/proxies/middleware. Those systems will often be more frequently
> restarted than the actual database servers, so being able to do that
> quickly without disrupting active connections is much more important
> there than with plain PostgreSQL servers.
>
> > About patches:
>
> Thanks for the review. Attached is a new patchset. I think I addressed
> all of your comments (I almost fully rewrote the docs). I also fixed
> two other issues that I found:
> - updating docs for 3.3 in more places
> - handling the GoAway message in more code paths on the client side
>
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Soumya S Murali 2025-12-01 05:35:19 Re: [PATCH] Expose checkpoint timestamp and duration in pg_stat_checkpointer
Previous Message Dilip Kumar 2025-12-01 04:59:59 Re: Parallel Apply