pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira <euler@eulerto.com>
To: Zechman, Derek S <Derek.S.Zechman@snapon.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: pg_hba.conf "authentication file token too long, skipping"
Date: Wed, 02 Aug 2023 13:20:29 -0300
Message-ID: <46011cbb-74e0-4e7d-9a78-b7857cc62918@app.fastmail.com> (raw)
In-Reply-To: <PH0PR04MB8294A7C60AD0693E13E76671C00AA@PH0PR04MB8294.namprd04.prod.outlook.com>
References: <PH0PR04MB8294A4C5A65D9D492CBBD349C002A@PH0PR04MB8294.namprd04.prod.outlook.com>
	<1567990.1690217495@sss.pgh.pa.us>
	<PH0PR04MB8294A7C60AD0693E13E76671C00AA@PH0PR04MB8294.namprd04.prod.outlook.com>

On Tue, Aug 1, 2023, at 1:29 PM, Zechman, Derek S wrote:
> " A one-line improvement would be to increase that constant, but it doesn't look very much harder to get rid of that fixed-size buffer altogether in favor of a StringInfo."
> 
> Is this something that can be included in the next patch?

Tom pushed patches for all supported back branches that raises the token length
from 256 to 10240 [1]. If it is a v13 or earlier [2], it also requires to
change the limit of line length (from 8192 to 20480). In v16 this limit was
completely eliminated using StringInfo [3].

In summary, this improvement will be available in the next minor releases.

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=313ceda2fe2ee8dd903ad4773f54de148...
[2] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=0660f74e861d0dc942af3e0b5f88cb2f0...
[3] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=de3f0e3fe0e7d44620111c5723504a3a6...


--
Euler Taveira
EDB   https://www.enterprisedb.com/

view thread (4+ messages)

Message-ID: <46011cbb-74e0-4e7d-9a78-b7857cc62918@app.fastmail.com>
Permalink:  ../46011cbb-74e0-4e7d-9a78-b7857cc62918@app.fastmail.com/
Also on:    postgresql.org/message-id/46011cbb-74e0-4e7d-9a78-b7857cc62918@app.fastmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: euler@eulerto.com, Derek.S.Zechman@snapon.com, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
  Subject: Re: pg_hba.conf "authentication file token too long, skipping"
  In-Reply-To: <46011cbb-74e0-4e7d-9a78-b7857cc62918@app.fastmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox