Re: Remove unused struct fields

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2025-11-26T15:01:07Z
Lists: pgsql-hackers
On Wed, Nov 26, 2025 at 02:54:48PM +0000, Bertrand Drouvot wrote:
> Here are a few fields that are not used.

-	const char *username;		/* username from startup packet */
+	scram_state_enum state;		/* username from startup packet */

-	BlockNumber write_page;		/* The next page to write to. */
+	BufFile    *write_file;		/* The current file to write to. */		/* The next page to write to. */

Something weird happened with the comments for these two.  Otherwise, this
seems reasonable to me.

-- 
nathan



Commits

  1. Remove a few unused struct members.