Re: Add GoAway protocol message for graceful but fast server shutdown/switchover - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Re: Add GoAway protocol message for graceful but fast server shutdown/switchover
Date
Msg-id CAN4CZFOw2v9G_9vuP0vnNH8K9X_UeSOyq=gWJp7bdGZ5HKNTDA@mail.gmail.com
Whole thread Raw
In response to Re: Add GoAway protocol message for graceful but fast server shutdown/switchover  ("Jelte Fennema-Nio" <postgres@jeltef.nl>)
List pgsql-hackers
Hello!

I only have a few stylistic comments and one question about the wal
sender part - but maybe I don't understand something there.

+ /*
+ * Only signal regular backends and walsenders. Skip
+ * auxiliary processes and dead-end backends.
+ */
+ if (bp->bkend_type == B_BACKEND ||
+ bp->bkend_type == B_WAL_SENDER)
+ {
+ SendProcSignal(bp->pid, PROCSIG_SMART_SHUTDOWN,
+    INVALID_PROC_NUMBER);

I don't see related changes in walsenders, am I missing something,
shouldn't this have some handling in WalSndLoop? Also, shouldn't
walsenders exit later, after normal backends have already stopped? So
I'm not sure how this is supposed to improve them.

+ /*
+ * Parse any available data to see if a GoAway message has arrived.
+ */
+ pqParseInput3(conn);

This is just stylistic, but other places seem to call parseInput instead.

There are also two typos/mistakes in the documentation:

* "rquest"
* "server requests the server"



pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: rename and move AssertVariableIsOfType
Next
From: David Rowley
Date:
Subject: Re: More speedups for tuple deformation