Improve the connection failure error messages

From: Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>
Subject: Improve the connection failure error messages
Date: 2024-01-11 08:54:20
Message-ID: CABdArM7q1=zqL++cYd0hVMg3u_tc0S=0Of=Um-KvDhLony0cSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Hackers,

Various sections of the code utilize the walrcv_connect() function,
employed by various processes such as walreceiver, logical replication
apply worker, etc., to establish connections with other hosts.
Presently, in case of connection failures, the error message lacks
information about the specific process attempting to connect and
encountering the failure.

The provided patch enhances error messages for such connection
failures, offering more details on the processes that failed to
establish a connection.

--
Thanks,
Nisha

Attachment Content-Type Size
v1-0001-Improve-the-connection-failure-error-messages.patch application/octet-stream 5.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kartyshov Ivan 2024-01-11 08:57:44 Re: [HACKERS] make async slave to wait for lsn to be replayed
Previous Message Kyotaro Horiguchi 2024-01-11 08:33:22 Re: pg_ctl start may return 0 even if the postmaster has been already started on Windows