Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vneLI-009qCJ-0l for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 14:58:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vneKI-00Bo2u-0v for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 14:57:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vneKH-00Bo2l-3B for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 14:57:53 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vneKG-00000000XQI-0Lax for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 14:57:52 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 519821D000C9; Wed, 4 Feb 2026 09:57:51 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Wed, 04 Feb 2026 09:57:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1770217071; x=1770303471; bh=mBly0bCeMNxv7m88dagg+I53THHYJ4p2GC/iZaZrdJM=; b= lwNSnrI2wMSornKDJo3moeUGxCUitkzGDR1X94Exc0giPQ3ky/1/i+ojdcQ3l4tT KjRgtUjmY162CZz2f41o23ytxziUkDR4Knz4gMx7XgU45KhNvk47V9CP9u36mVyD iC+2GuRJykxT85je/pInwOnVJ7jerARiWPnw3Ub1mfqaL8Ce4TlDw+tHHuI1sKZ2 0I/HSvUj1lQFlfgAaGzfB0yS2MCwkTufvzcmwMRZHlmNv8r5PgiMh1zi8bz4qU4H gght67y4cKcpPjayGTJp46Tx31ElyphC88b5Q759jKEUQ+SlCFJEgVcXe/EcS+8W fgDIilUYu9bogNX3bYoG6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1770217071; x=1770303471; bh=m Bly0bCeMNxv7m88dagg+I53THHYJ4p2GC/iZaZrdJM=; b=vBblB7fTzh5FwN2kD 4EBfinFAjVkIkHX9zDMROZG8YeMUTSloUjO6Kwq+EJf2yRBIjs5esdNZlhgZRycp 2ldanCUV7BsIUef50eKToi0iZhQqIcKw2sluGhGi1ehNdrxBpFgPM31ccRRc2VOp KR3CX6zZ83FvThfWPPgCuCP03+j8+mMeJ8GFgc4U1kaCMGyEO60BYYP1/tDjAany Sw4SlR6AAmwQhWW+x6IGnwZjRGGjmXb7YWtqIy/3jBM6VSIppMMDzFHckf+a52Vn otWfyQX37WBj6bZni9mkE2RxVeTjo39ITiCcnQ5foWwKJcDZVsrcia+oj0ncnAb0 981gQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddukedvjeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertd dtvdejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegv ihhsvghnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepheeivdfhuefhueeggf efheegjedtveeuhfethfeufedvudfgtdeuhefgfeduhfffnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruh htrdhorhhgpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphht thhopehmrghthhgvuhhsshhsihhlvheljeesghhmrghilhdrtghomhdprhgtphhtthhope hpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Feb 2026 09:57:50 -0500 (EST) Message-ID: <7c18e854-0ddb-4670-b0c4-f2541b5edd91@eisentraut.org> Date: Wed, 4 Feb 2026 15:57:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Show expression of virtual columns in error messages To: Matheus Alcantara , pgsql-hackers@lists.postgresql.org References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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"?