Import likely/unlikely from PostgreSQL.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 28 May 2025 12:19:25 +0000 (21:19 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 28 May 2025 12:19:25 +0000 (21:19 +0900)
commitffd3a5224033d4828f81c7e4518cad36ddffdfe5
tree2af25bd7d15f2aa81819cad18aa4983ee1452a17
parenta98be3837c93a97e17c75e840fbe509f571609e2
Import likely/unlikely from PostgreSQL.

These macros are not only useful to enhance performance (if correctly
used) but make porting codes from PostgreSQL to pgpool easier since
the macros occasionally used in the code.

Discussion: [pgpool-hackers: 4599] Porting likely/unlikely
https://www.pgpool.net/pipermail/pgpool-hackers/2025-May/004600.html
src/include/pool_type.h