From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Clean up some code using "(expr) ? true : false" |
Date: | 2021-09-08 01:00:37 |
Message-ID: | E1mNlx7-0000XV-Gf@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Clean up some code using "(expr) ? true : false"
All the code paths simplified here were already using a boolean or used
an expression that led to zero or one, making the extra bits
unnecessary.
Author: Justin Pryzby
Reviewed-by: Tom Lane, Michael Paquier, Peter Smith
Discussion: https://postgr.es/m/20210428182936.GE27406@telsasoft.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fd0625c7a9c679c0c1e896014b8f49a489c3a245
Modified Files
--------------
contrib/intarray/_int_tool.c | 2 +-
contrib/ltree/ltree_gist.c | 2 +-
contrib/sepgsql/selinux.c | 2 +-
src/backend/access/gin/gindatapage.c | 2 +-
src/backend/access/gin/ginutil.c | 2 +-
src/backend/access/gist/gistsplit.c | 4 ++--
src/backend/access/hash/hash.c | 2 +-
src/backend/access/hash/hashinsert.c | 2 +-
src/backend/access/hash/hashovfl.c | 2 +-
src/backend/access/hash/hashpage.c | 2 +-
src/backend/access/heap/heapam_visibility.c | 2 +-
src/backend/executor/spi.c | 2 +-
src/backend/jit/jit.c | 2 +-
src/backend/optimizer/util/pathnode.c | 4 ++--
src/backend/statistics/mcv.c | 2 +-
src/backend/storage/file/buffile.c | 2 +-
src/backend/tsearch/ts_parse.c | 2 +-
src/backend/utils/adt/bool.c | 2 +-
src/backend/utils/adt/ruleutils.c | 4 ++--
src/backend/utils/adt/tsquery_gist.c | 2 +-
src/backend/utils/adt/tsquery_util.c | 2 +-
src/backend/utils/fmgr/dfmgr.c | 2 +-
22 files changed, 25 insertions(+), 25 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2021-09-08 03:02:54 | pgsql: Introduce GUC shared_memory_size |
Previous Message | Magnus Hagander | 2021-09-07 20:06:01 | pgsql: Consistently use read-only instead of "read only" |