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

From Pavel Luzanov
Subject Re: Adding error messages to a few slash commands
Date
Msg-id 93b89a8e-be41-4a94-bfb4-ff1d95137bbe@postgrespro.ru
Whole thread Raw
In response to Re: Adding error messages to a few slash commands  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Adding error messages to a few slash commands
List pgsql-hackers
On 13.04.2025 08:29, Tom Lane wrote:
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.

+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

pgsql-hackers by date:

Previous
From: Alexander Lakhin
Date:
Subject: Re: AIO v2.5
Next
From: Pavel Luzanov
Date:
Subject: Re: Things I don't like about \du's "Attributes" column