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.94.2) (envelope-from ) id 1tg13C-0071pZ-Ke for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Feb 2025 12:32:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tg13B-0077a1-8o for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Feb 2025 12:32:09 +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.94.2) (envelope-from ) id 1tg13A-0077Wi-UR for pgsql-bugs@lists.postgresql.org; Thu, 06 Feb 2025 12:32:09 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tg138-003WWV-28 for pgsql-bugs@lists.postgresql.org; Thu, 06 Feb 2025 12:32:08 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id E120725400D6; Thu, 6 Feb 2025 07:32:05 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 06 Feb 2025 07:32:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1738845125; x=1738931525; bh=Q LilvIjHYrXU/dR6bP+KlUzWpAe3pOyB9V9D3zKsGnQ=; b=pVemI9juW72VAPt6N 9MWpcCGnayCAdhvC95SI4fKZwWGr0pcugpxZEJQ/zwVgZbaV7Zs5bRR4zTAx4fkM VK4fvKfd7NBPASaJwaGwFPq4SkZUgnZ2FzqsoCixQUd0NOG0dVgNaNNesppLmx6/ DUOo+XNoyQsP3EKIEAsnk3ps7Jtcz4/kgr7CaJWJGmMfODlq0rbtX4V5DjA2Jzpc +vt4a3KEdKsEn5P3iBoXi+7tu4Dd6OIewQhArh7ochIuY/BSySWdiJiIS0etMoKK jsyNqAuoJKmUTveYoL3jluFGyhV9W36DWWjdTBDcUOYw93YlNwnFrRQMx4wVXac/ 4XXLg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvheeuffehgfeukeeufeeh hefghfeugfefudekjeevudffgeffkeegffffveegheenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepphhivghrrhgv qdhprghulhesghgvohhpohhsthgtohguvghsrdgtohhmpdhrtghpthhtohepphhgshhqlh dqsghughhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Feb 2025 07:32:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1738845123; bh=lkx2ZLzePeiFssJ3RrZ5lAYHTELJjSX0D4M440Wh+94=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=dgQP8JCRSuVYXbifeSYQAKAd22r24iuZaLRbnNr+/oyPyxf3AGCj7XQLpWrU/qOiv L/IpCLdUm0UmO6gZwgBMTQeJN6KZAwcNtCSdps1D2I4OxSrVCmWn82S483oILgbisE u3hwtnSzkzF6XX/x6v0Z7N29RAJz5/8zYctO6gnxgda69TvpkXvYjXELn1aLfg4Iq9 QJQkYjo6WbWh23ZHb+K2Jsj+8ou+pnEsn7ZPEBfSVptTSFfLpIicpD3xSwUcTUIH3f o3CpJgk3v9Xhlwu5WnEZjy4yboj4yfMA0maIrOjxc3OgPxUk4O5O01/jPWr0xJ54ZI eORsTvHYIkFVg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id F1A7C94; Thu, 6 Feb 2025 13:32:02 +0100 (CET) Date: Thu, 6 Feb 2025 13:32:02 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Pierre-Paul Hackens Cc: pgsql-bugs@lists.postgresql.org Subject: Re: pg_get_constraintdef throws SQL Error [XX000]: ERROR: invalid constraint type "n" (PG17) Message-ID: <202502061232.fmihjvhn7k3l@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Feb-06, Pierre-Paul Hackens wrote: > Dear support team, > > I am writing to report a bug I encountered with the pg_get_constraintdef > function: > SELECT *, pg_get_constraintdef(oid) > FROM pg_constraint > WHERE contype = 'n'; > > SQL Error [XX000]: ERROR: invalid constraint type "n" Hello, thanks for reporting this. It was reported previously and already fixed; the fix will be in 17.3, to be released next week. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/