Re: Remove unused struct fields - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Remove unused struct fields
Date
Msg-id aScWM1lnwb9gsXtG@nathan
Whole thread Raw
In response to Remove unused struct fields  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Remove unused struct fields
List 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



pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Remove unused struct fields
Next
From: "David G. Johnston"
Date:
Subject: Re: Additional info for CREATE ROLE with REPLICATION