Re: Making error message more user-friendly with spaces in a URI

Greg Sabino Mullane <htamfids@gmail.com>

From: Greg Sabino Mullane <htamfids@gmail.com>
To: Yushi Ogiwara <btogiwarayuushi@oss.nttdata.com>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2024-11-01T13:38:57Z
Lists: pgsql-hackers
>
> $ psql "postgres://localhost:5432/postgres?application_name=a b"
> psql: error: trailing data found: "a b"
>

This works fine for me, and sets a space in the application_name string as
expected. Do you have a different example?

Cheers,
Greg

Commits

  1. libpq: Improve error message when parsing URI parameters and keywords