Add backendType to PGPROC, replacing isRegularBackend

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Add backendType to PGPROC, replacing isRegularBackend
Date: 2026-02-03 20:55:20
Message-ID: b77e4962-a64a-43db-81a1-580444b3e8f5@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I propose a little refactoring, attached, to replace the
"isRegularBackend" field in PGPROC with full "backendType".

Andres briefly suggested this a while back [1]:

On Fri, 22 Nov 2024 at 22:13, Andres Freund <andres(at)anarazel(dot)de>
wrote:
> Or we could have a copy of the backend type in PGPROC.

but we didn't follow up on that approach. I don't see why, it seems so
much simpler than what we ended up doing. Am I missing something?

[1]
https://www.postgresql.org/message-id/ujenaa2uabzfkwxwmfifawzdozh3ljr7geozlhftsuosgm7n7q%40g3utqqyyosb6

- Heikki

Attachment Content-Type Size
0001-Add-backendType-to-PGPROC-replacing-isRegularBackend.patch text/x-patch 6.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-02-03 21:04:41 Re: Add backendType to PGPROC, replacing isRegularBackend
Previous Message Nathan Bossart 2026-02-03 20:44:10 Re: refactor architecture-specific popcount code