Re: Better title output for psql \dt \di etc. commands

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: Nathan Bossart <nathandbossart(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Better title output for psql \dt \di etc. commands
Date: 2025-02-04 00:58:35
Message-ID: 548696.1738630715@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Sabino Mullane <htamfids(at)gmail(dot)com> writes:
> ... For this
> particular item, I'm still of the opinion that leaving it as "List of
> relations" is a pretty good default for some future somebody who forgets to
> update the lists of relation types. New types are certainly not going to
> happen often. Better "List of relations" than a release where everybody and
> their cousin starts asking what "List of ???" means.

Hopefully an oversight like that wouldn't make it to release. But
hiding it by putting out an ordinary-looking title might help it
avoid detection for a long time.

> P.S. I found it amusing to see in some quick grepping that pg_controldata
> has a msgstr of "???". So far no language has managed to translate it into
> something else.

There are several pre-existing "???" strings in describe.c too,
for similar this-shouldn't-happen cases. I'm not proposing
something that's far outside our existing practice.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhang Mingli 2025-02-04 01:31:06 Re: Prevent COPY FREEZE on Foreign tables
Previous Message Tom Lane 2025-02-04 00:54:19 Re: Question -- why is there no errhint_internal function?