postgresql_16:7.2.15.3 Exit Status
PostgreSQL 16 > Reference > PostgreSQL Client Applications > pg_recvlogical > Exit Status
pg_recvlogical will exit with status 0 when terminated by the SIGINT or SIGTERM signal. (That is the normal way to end it. Hence it is not an error.) For fatal errors or other signals, the exit status will be nonzero.