Re: Maximum password length - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Maximum password length
Date
Msg-id 08a13f64-6893-daea-4c51-bcc957809876@2ndquadrant.com
Whole thread Raw
In response to Re: Maximum password length  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Maximum password length  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2020-09-01 02:54, Tom Lane wrote:
> Therefore, I propose setting this up with a #define symbol in
> pg_config_manual.h and leaving it at that.  Giving documentation in
> pg_config_manual.h seems sufficient to me.  Attached is a revised
> version of Nathan's patches that does it like that.
> 
> I set the proposed limit at 1024 bytes, but given that we now know
> of use-cases needing up to 800 bytes, maybe there should be a little
> more headroom?  I don't want to make it enormous, though, seeing that
> we're allocating static buffers of that size.

ISTM that it's only going to be a matter of time before that will be 
exceeded.  Why have a limit at all?  Accept whatever StringInfo accepts.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Group by reordering optimization
Next
From: Tomas Vondra
Date:
Subject: Re: Disk-based hash aggregate's cost model