Re: Error message against unknown key in pg_service.conf is unclear

From: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
To: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Error message against unknown key in pg_service.conf is unclear
Date: 2025-10-16 16:27:11
Message-ID: CAOYmi+=tdGq2d1DwG77cwt0Xi-Ew_Z_JE+BQTW5-wvm6A2awig@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 15, 2025 at 7:30 PM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
> The error message showed the correct line number, but “syntax error” is confusing. Shouldn’t it be something like “invalid configuration parameter: default”?

I think so; see patch 0003 in [1].

--Jacob

[1] https://postgr.es/m/CAOYmi%2BkYKPXCfiAF3xAu%2BcHYSLYEc4OC9Wsh2nebwWboNbkpeQ%40mail.gmail.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-10-16 17:01:10 Re: [PING] [PATCH v2] parallel pg_restore: avoid disk seeks when jumping short distance forward
Previous Message Ashutosh Bapat 2025-10-16 16:25:05 Re: Changing shared_buffers without restart