Re: pg_get_constraintdef throws SQL Error [XX000]: ERROR: invalid constraint type "n" (PG17) - Mailing list pgsql-bugs

From Álvaro Herrera
Subject Re: pg_get_constraintdef throws SQL Error [XX000]: ERROR: invalid constraint type "n" (PG17)
Date
Msg-id 202502061232.fmihjvhn7k3l@alvherre.pgsql
Whole thread Raw
In response to pg_get_constraintdef throws SQL Error [XX000]: ERROR: invalid constraint type "n" (PG17)  (Pierre-Paul Hackens <pierre-paul@geopostcodes.com>)
List pgsql-bugs
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/



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
Next
From: Sandeep Thakkar
Date:
Subject: Re: BUG #18794: pgBouncer Windows installation error due to a simple sql bug???