pgsql: Introduce symbolic names for FeBeWaitSet positions.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Introduce symbolic names for FeBeWaitSet positions.
Date: 2021-03-01 03:20:40
Message-ID: E1lGZ6u-0008LV-KU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Introduce symbolic names for FeBeWaitSet positions.

Previously we used 0 and 1 to refer to the socket and latch in far flung
parts of the tree, without any explanation. Also use PGINVALID_SOCKET
rather than -1 in a couple of places that didn't already do that.

Reviewed-by: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Discussion: https://postgr.es/m/CA%2BhUKGJAC4Oqao%3DqforhNey20J8CiG2R%3DoBPqvfR0vOJrFysGw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a042ba2ba7bb44f191f6f9398da27f04a958a0db

Modified Files
--------------
src/backend/libpq/be-secure.c | 4 ++--
src/backend/libpq/pqcomm.c | 18 +++++++++++++++---
src/backend/utils/init/miscinit.c | 6 ++++--
src/include/libpq/libpq.h | 3 +++
4 files changed, 24 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2021-03-01 03:51:47 pgsql: Avoid repeated decoding of prepared transactions after a restart
Previous Message Amit Kapila 2021-03-01 03:00:16 pgsql: Update docs of logical replication for commit ce0fdbfe97.