Re: Show expression of virtual columns in error messages

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Matheus Alcantara <matheusssilv97(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Show expression of virtual columns in error messages
Date: 2026-02-04 14:57:49
Message-ID: 7c18e854-0ddb-4670-b0c4-f2541b5edd91@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03.02.26 15:06, Matheus Alcantara wrote:
> The attached patch changes this behavior to show the virtual column
> expression instead:
>
> ERROR: new row for relation "t" violates check constraint "t_c_check"
> DETAIL: Failing row contains (5, 10, a * 2).

Could be useful, but in this context you don't know which column is "a"?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Geier 2026-02-04 14:59:22 Re: Convert NOT IN sublinks to anti-joins when safe
Previous Message Robert Haas 2026-02-04 14:55:00 Re: AIX support