postgresql/src/backend/replication/logical
Tom Lane 3b4ac33254 Avoid type cheats for invalid dsa_handles and dshash_table_handles.
Invent separate macros for "invalid" values of these types, so that
we needn't embed knowledge of their representations into calling code.
These are all zeroes anyway ATM, so this is not fixing any live bug,
but it makes the code cleaner and more future-proof.

I (tgl) also chose to move DSM_HANDLE_INVALID into dsm_impl.h,
since it seems like it should live beside the typedef for dsm_handle.

Hou Zhijie, Nathan Bossart, Kyotaro Horiguchi, Tom Lane

Discussion: https://postgr.es/m/OS0PR01MB5716860B1454C34E5B179B6694C99@OS0PR01MB5716.jpnprd01.prod.outlook.com
2023-01-25 11:48:38 -05:00
..
applyparallelworker.c Display the leader apply worker's PID for parallel apply workers. 2023-01-18 09:03:12 +05:30
decode.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
launcher.c Avoid type cheats for invalid dsa_handles and dshash_table_handles. 2023-01-25 11:48:38 -05:00
logical.c Acquire spinlock when updating 2PC slot data during logical decoding creation 2023-01-12 13:40:33 +09:00
logicalfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
meson.build Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
message.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
origin.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
proto.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
relation.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
reorderbuffer.c Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
snapbuild.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tablesync.c Fix the Drop Database hang. 2023-01-24 09:25:36 +05:30
worker.c Track logrep apply workers' last start times to avoid useless waits. 2023-01-22 14:08:46 -05:00