From: | Abhishek Chanda <abhishek(dot)becs(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Adding error messages to a few slash commands |
Date: | 2025-04-13 03:53:36 |
Message-ID: | CAKiP-K8XTcOg6yiALfJbmFdEqHrtw-kearQ+c7uFU5UqMv6vcQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Sorry, I forgot to attach example usage. Here is how these currently behave:
postgres=> \dT foo
List of data types
Schema | Name | Description
--------+------+-------------
(0 rows)
postgres => \du foo
List of roles
Role name | Attributes
-----------+------------
postgres => \df foo
List of functions
Schema | Name | Result data type | Argument data types | Type
--------+------+------------------+---------------------+------
(0 rows)
Here is how these look like after this change:
postgres=> \dT foo
Did not find any data type named "foo".
postgres => \df foo
Did not find any function named "foo".
postgres => \du foo
Did not find any role named "foo".
Thanks
On Sat, Apr 12, 2025 at 10:43 PM Abhishek Chanda
<abhishek(dot)becs(at)gmail(dot)com> wrote:
>
> Hello hackers,
>
> 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.
> I did not change all of the slash commands in this initial patch to
> wait for feedback, happy to do that if this patch is acceptable. I did
> not add any tests yet because the existing ones did not seem to have
> any, happy to add tests if needed. Also, I know that we are in a
> feature freeze, is such a change acceptable now?
>
> Thanks
>
> --
> Thanks and regards
> Abhishek Chanda
--
Thanks and regards
Abhishek Chanda
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-04-13 05:29:00 | Re: Adding error messages to a few slash commands |
Previous Message | Abhishek Chanda | 2025-04-13 03:43:15 | Adding error messages to a few slash commands |