[PATCH] Remove unused scram_client_key_len and scram_server_key_len fields

Started by Aleksander Alekseev4 months ago4 messageshackers
Jump to latest
#1Aleksander Alekseev
aleksander@tigerdata.com

Hi,

I discovered some dead code in libpq. The proposed patch removes it.

--
Best regards,
Aleksander Alekseev

Attachments:

t253322_1
v1-0001-libpq-remove-unused-scram_client_key_len-and-scra.patchtext/x-patch; charset=US-ASCII; name=v1-0001-libpq-remove-unused-scram_client_key_len-and-scra.patchDownload+0-5
#2Daniel Gustafsson
daniel@yesql.se
In reply to: Aleksander Alekseev (#1)
Re: [PATCH] Remove unused scram_client_key_len and scram_server_key_len fields

On 5 Aug 2026, at 14:03, Aleksander Alekseev <aleksander@tigerdata.com> wrote:

I discovered some dead code in libpq. The proposed patch removes it.

Seems reasonable. External code should also not reach into PGconn since it's
subject to change, and searching on Github/Debian codesearch doesn't turn up
any extension violating this. Will apply to master unless objections.

--
Daniel Gustafsson

#3Matheus Alcantara
matheusssilv97@gmail.com
In reply to: Aleksander Alekseev (#1)
Re: [PATCH] Remove unused scram_client_key_len and scram_server_key_len fields

On 05/08/26 09:03, Aleksander Alekseev wrote:

Hi,

I discovered some dead code in libpq. The proposed patch removes it.

Good finding. This is an oversight in 761c79508e7 which implemented
the scram pass-through feature.

The patch looks good to me.

--
Matheus Alcantara
EDB: https://www.enterprisedb.com

#4Daniel Gustafsson
daniel@yesql.se
In reply to: Matheus Alcantara (#3)
Re: [PATCH] Remove unused scram_client_key_len and scram_server_key_len fields

On 6 Aug 2026, at 15:15, Matheus Alcantara <matheusssilv97@gmail.com> wrote:

On 05/08/26 09:03, Aleksander Alekseev wrote:

Hi,
I discovered some dead code in libpq. The proposed patch removes it.

Good finding. This is an oversight in 761c79508e7 which implemented the scram pass-through feature.

The patch looks good to me.

Pushed, thanks!

--
Daniel Gustafsson