pgsql: Simplify signature of ProcessStartupPacket()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify signature of ProcessStartupPacket()
Date: 2026-05-16 22:59:44
Message-ID: E1wONyy-000zyC-16@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simplify signature of ProcessStartupPacket()

There is now only one caller of ProcessStartupPacket(). Let's simplify
the routine so as the GSS and SSL states are tracked inside it. If
future callers are added, there is less guessing to do.

Suggested-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Discussion: https://postgr.es/m/aga7lCWluyc5zLb5@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3dcd85d1b96151529718cc195d85d4ce4e0c1ccb

Modified Files
--------------
src/backend/tcop/backend_startup.c | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2026-05-17 01:03:20 pgsql: Use ereport(ERROR), not Assert(), for publisher tuples missing c
Previous Message Michael Paquier 2026-05-16 22:39:04 pgsql: doc: Fix example of pg_restore_extended_stats()