Re: Adding error messages to a few slash commands

From: Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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 06:47:34
Message-ID: 93b89a8e-be41-4a94-bfb4-ff1d95137bbe@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 13.04.2025 08:29, Tom Lane wrote:
> 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.

+1 for this patch.

> Personally, if I were trying to make these things consistent, I'd have
> gone in the other direction (ie return empty tables).

+1
Returning empty tables is a more appropriate behavior.

--
Pavel Luzanov
Postgres Professional:https://postgrespro.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Luzanov 2025-04-13 07:43:41 Re: Things I don't like about \du's "Attributes" column
Previous Message Alexander Lakhin 2025-04-13 06:00:01 Re: AIO v2.5