Re: Adding error messages to a few slash commands

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Abhishek Chanda <abhishek(dot)becs(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Adding error messages to a few slash commands
Date: 2025-04-13 05:29:00
Message-ID: 769598.1744522140@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Abhishek Chanda <abhishek(dot)becs(at)gmail(dot)com> writes:
> Currently, some slash commands in psql return an error saying "Did not
> find any XXXX named YYYY" while some return an empty table. This patch
> changes a few of the slash commands to return a similar error message.

Personally, if I were trying to make these things consistent, I'd have
gone in the other direction (ie return empty tables). We don't make
psql throw an error when an ordinary user query returns zero rows;
why should \d commands do that?

> Also, I know that we are in a
> feature freeze, is such a change acceptable now?

Whether changing this is a good idea or not, it's surely hard
to claim that it's a bug fix. So I'd say it's out of scope for
post-feature-freeze.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Lakhin 2025-04-13 06:00:01 Re: AIO v2.5
Previous Message Abhishek Chanda 2025-04-13 03:53:36 Re: Adding error messages to a few slash commands