From: | Greg Sabino Mullane <htamfids(at)gmail(dot)com> |
---|---|
To: | Antonin Houska <ah(at)cybertec(dot)at> |
Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: POC: Carefully exposing information without authentication |
Date: | 2025-05-31 00:13:45 |
Message-ID: | CAKAnmmJ77jeYZGXPBxb75U52ojNRUoKd6Za-T26xNPCouUeV8g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, May 30, 2025 at 11:02 AM Antonin Houska <ah(at)cybertec(dot)at> wrote:
> Why is it important not to fork?
Good question. Forking is expensive, and there is also a lot of
housekeeping associated with it that is simply not needed here. We want
this to be lightweight, and simple. No need to fork if we are just going to
do a few strncmp() calls and a send(). However, I'm not highly opposed to
fork-first, as I understand that we want to not slow down postmaster. My
testing showed a barely measurable impact, but I will defer to whatever
decision the elder Postgres gods decide on.
> My understanding is that pg_is_ready also tries to start a regular
> connection, i.e. forks a new backend.
Yep. I consider pg_isready a spiritual cousin to this feature, but it's not
something that can really do what this does.
Cheers,
Greg
--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-05-31 00:44:01 | Re: Add comment explaining why queryid is int64 in pg_stat_statements |
Previous Message | Tom Lane | 2025-05-30 22:58:09 | Re: Reduce DEBUG level of catcache refreshing messages |