| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | Jiho Lee <jiho99322(at)gmail(dot)com> |
| Cc: | Rucha Kulkarni <rirukool(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Backend goes in infinite loop when a GUC_REPORT value can’t be converted to client_encoding |
| Date: | 2026-12-04 10:21:15 |
| Message-ID: | axKUG3O6v-zmvgIC@paquier.xyz |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Dec 03, 2026 at 04:08:47PM +0900, Michael Paquier wrote:
> On Thu, Dec 03, 2026 at 02:52:55PM +0900, Jiho Lee wrote:
>> Re-flagging such variables when client_encoding changes might be
>> worth it, but I haven't tested that.
I have indeed missed the meaning of this sentence in your last
message, and that may be a sensible thing to do if the client_encoding
changes.
A short experiment is showing me that we could save
reported_client_encoding around BeginReportingGUCOptions(), then
report back the values in ReportChangedGUCOptions() through a scan of
guc_hashtab. I still need to figure out a bit more the logic to avoid
duplicates of the same parameter across a single
ReportChangedGUCOptions().. Perhaps that should be a patch of its
own, all the work happening only on HEAD as I have not seen many
complaints on the matter, as well.
--
Michael
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jan Nidzwetzki | 2026-12-04 10:22:51 | Re: Standby writes pages past minRecoveryPoint after crash recovery |
| Previous Message | Tatsuo Ishii | 2026-12-04 10:08:21 | Re: Row pattern recognition |