Re: psql --help=variables missing csv_fieldsep

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Pg Hackers <pgsql-hackers@lists.postgresql.org>, Daniel Verite <daniel@manitou-mail.org>
Date: 2025-11-03T18:03:51Z
Lists: pgsql-hackers
=?utf-8?Q?=C3=81lvaro?= Herrera <alvherre@kurilemu.de> writes:
> While messing with the \pset boolean display patch, I noticed that psql
> --help=variables is missing csv_fieldsep.  Is there a reason for this?

But wait ... is it actually a variable?  help.c does list it, but
as a \pset option:

    HELP0("  \\pset [NAME [VALUE]]   set table output option\n"
          "                         (border|columns|csv_fieldsep|display_false|display_true|\n"
...

Some kind of mechanical cross-check does seem like a good idea,
even if it's just a rough one-time effort.

			regards, tom lane



Commits

  1. Refer readers of \? to "\? variables" for pset options

  2. Have psql's "\? variables" show csv_fieldsep

  3. Add CSV table output mode in psql.