Re: [oauth] Increased CPU usage during device flow with libcurl 8.20.0

From: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Daniel Gustafsson <daniel(at)yesql(dot)se>
Subject: Re: [oauth] Increased CPU usage during device flow with libcurl 8.20.0
Date: 2026-06-16 19:46:31
Message-ID: CAOYmi+mbAYXDkqta5LXvGCtGSK-L-i=dOPcJO0D3yB4Z25iS+A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jun 15, 2026 at 3:56 PM Jacob Champion
<jacob(dot)champion(at)enterprisedb(dot)com> wrote:
> I need to switch to a different context for today, but tomorrow I'll
> try to find a solution that touches only the test code.

Attached as v2-0002, which moves the version check into one of the
OAuth test executables. (I'll hold 0004 until after REL_19_STABLE is
branched; it just implements the v1 strategy and reverts 0002.)

I've tested this against a local Homebrew installation, but if anyone
who's hit this in the wild has a chance to put 0001-3 through a smoke
test, that'd be awesome. Barring any objections or bad test results,
I'll plan to push tomorrow.

Thanks!
--Jacob

Attachment Content-Type Size
v2-0001-oauth_validator-Print-captured-stderr-after-call-.patch application/octet-stream 1.3 KB
v2-0002-oauth_hook_client-Print-the-linked-libcurl-versio.patch application/octet-stream 5.0 KB
v2-0003-oauth-Skip-call-count-test-for-libcurl-8.20.0.patch application/octet-stream 2.7 KB
v2-0004-libpq-oauth-Print-libcurl-version-with-OAUTHDEBUG.patch application/octet-stream 8.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2026-06-16 19:46:38 Re: [PATCH] Fix segmentation fault and infinite loop in jsonb_{plperl,plpython}
Previous Message Jeff Davis 2026-06-16 19:14:12 Re: Avoid orphaned objects dependencies, take 3