pgsql: Rename StartBackgroundWorker() to BackgroundWorkerMain().

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename StartBackgroundWorker() to BackgroundWorkerMain().
Date: 2023-10-09 08:52:41
Message-ID: E1qpm0G-000lfj-Pb@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename StartBackgroundWorker() to BackgroundWorkerMain().

The comment claimed that it is "called from postmaster", but it is
actually called in the child process, pretty early in the process
initialization. I guess you could interpret "called from postmaster"
to mean that, but it seems wrong to me. Rename the function to be
consistent with other functions with similar role.

Reviewed-by: Thomas Munro
Discussion: https://www.postgresql.org/message-id/4f95c1fc-ad3c-7974-3a8c-6faa3931804c@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/637109d13ab2684aa7ad4e893137e7487b5e8490

Modified Files
--------------
src/backend/postmaster/bgworker.c | 7 ++-----
src/backend/postmaster/postmaster.c | 4 ++--
src/include/postmaster/bgworker_internals.h | 4 ++--
3 files changed, 6 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-10-09 15:31:10 pgsql: Doc: use CURRENT_USER not USER in plpgsql trigger examples.
Previous Message David Rowley 2023-10-09 04:25:39 pgsql: Optimize various aggregate deserialization functions