| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Replace getopt() with our re-entrant variant in the backend |
| Date: | 2026-03-30 17:50:26 |
| Message-ID: | E1w7Gkr-002BNl-1P@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Replace getopt() with our re-entrant variant in the backend
Some of these probably could continue using non-re-entrant getopt()
even if we start using threads in the future, but it seems better to
make them all anyway, so that we have a clear-cut rule of "no plain
getopt() in the postgres binary".
Reviewed-by: Peter Eisentraut <peter(at)eisentraut(dot)org>
Discussion: https://www.postgresql.org/message-id/d1da5f0e-0d68-47c9-a882-eb22f462752f@iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/681774315d738ed9bb213d755c6f39fa5b5009b9
Modified Files
--------------
src/backend/bootstrap/bootstrap.c | 28 +++++++-------
src/backend/postmaster/postmaster.c | 60 +++++++++++++----------------
src/backend/tcop/postgres.c | 77 ++++++++++++++++---------------------
src/backend/utils/misc/ps_status.c | 3 +-
4 files changed, 77 insertions(+), 91 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-03-30 18:00:23 | pgsql: Be more careful to preserve consistency of a tuplestore. |
| Previous Message | Melanie Plageman | 2026-03-30 17:30:21 | pgsql: Pass down information on table modification to scan nodes |