From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> |
Cc: | bdrouvot(at)amazon(dot)com, sawada(dot)mshk(at)gmail(dot)com, ashutosh(dot)bapat(dot)oss(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: more descriptive message for process termination due to max_slot_wal_keep_size |
Date: | 2022-09-28 20:30:37 |
Message-ID: | 4035599.1664397037@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> writes:
> Okay. the points you brought up above are sufficient grounds for not
> doing so. Now they are in the following format.
> LOG: terminating process 16034 to release replication slot "rep1"
> because its restart_lsn 0/3158000 exceeds the limit by 15368192 bytes
This seems to me to be a pretty blatant violation of our first message
style guideline [1]:
The primary message should be short, factual, and avoid reference to
implementation details such as specific function names. “Short” means
“should fit on one line under normal conditions”. Use a detail message
if needed to keep the primary message short ...
I think you should leave the primary message alone and add a DETAIL,
as the first version of the patch did.
The existing "invalidating slot" message is already in violation
of this guideline, so splitting off a DETAIL from that seems
indicated as well.
regards, tom lane
[1] https://www.postgresql.org/docs/devel/error-style-guide.html
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-09-28 20:38:51 | Re: more descriptive message for process termination due to max_slot_wal_keep_size |
Previous Message | Peter Geoghegan | 2022-09-28 20:20:37 | Re: longfin and tamandua aren't too happy but I'm not sure why |