Re: Adding error messages to a few slash commands - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Adding error messages to a few slash commands
Date
Msg-id 769598.1744522140@sss.pgh.pa.us
Whole thread Raw
In response to Adding error messages to a few slash commands  (Abhishek Chanda <abhishek.becs@gmail.com>)
Responses Re: Adding error messages to a few slash commands
List pgsql-hackers
Abhishek Chanda <abhishek.becs@gmail.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



pgsql-hackers by date:

Previous
From: Abhishek Chanda
Date:
Subject: Re: Adding error messages to a few slash commands
Next
From: Alexander Lakhin
Date:
Subject: Re: AIO v2.5