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 1tLjsb-00GflW-Tf for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Dec 2024 14:09:26 +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 1tLjsZ-00CJvM-Bq for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Dec 2024 14:09:24 +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 1tLjsY-00CJvB-FS for pgsql-bugs@lists.postgresql.org; Thu, 12 Dec 2024 14:09:24 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tLjsW-002SNB-F3 for pgsql-bugs@lists.postgresql.org; Thu, 12 Dec 2024 14:09:22 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4912A2540236 for ; Thu, 12 Dec 2024 09:09:19 -0500 (EST) Received: from phl-imap-10 ([10.202.2.85]) by phl-compute-06.internal (MEProxy); Thu, 12 Dec 2024 09:09:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= zzzcomputing.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to; s=fm1; t= 1734012559; x=1734098959; bh=UjyEMKICqsZ2/6B3D9NEJiyJK6g5shyVQRG Qc5QmliQ=; b=ymwRuHlA1Izr0FlHV9IuloPf/bA+hHTsBoBFeUZGuTi1Rbg5WTz +FTJkXYivrfCM+XTFZmLwQlAgNlCwTcFGe2HWHuGsO11XOuTXl8FdUuhzklWuurz T55Pq6fuBpU6k8di4+3gu1pXfOSkgoQA0yS6BADZDC6PjtI2KKKIB/QlUOH5yqFC kbslREE0KNyiTrrmV1LmCj3+k+JkIaA2ks5LPHaFX1OfyQLs2FJz6HW719GxtfYy nGnc8SQWiHKNWW6g/IRWR2SsFnJVIbvwamlpHKHVYy/rLzzmaTTEETjhLNAH+MPX p3UlyBSWy0D9yIfcbjxuqT7x12YG7qkcMlA== 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:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1734012559; x=1734098959; bh=UjyEMKICqsZ2/6B3D9NEJiyJK6g5shyVQRG Qc5QmliQ=; b=Yj5JJnmlYrmFmZli0o5piMcYYUqx5MkBJ39HYX+rUSpiLnklCYc W/NhsAcBPBQjCznqweSxntapG9ib+pRUhDTLLKa2L6MePi88wwB6jBonWdEpOJ2A 8MndQE/2HYg7+mWpK/LVT8O55zwW8EdBUrn+IzLqBL+DF3G065/v9BpPRHP1Id1e z0W0keufvr4I7Yg4sEMV9ypide45zGLEY5lvUNYHfLHxwc89Mec2Dm2HFbaQ5U5S 9QMqjYhSnLeqK3ouwE9X4nbKLkaHSnAvUZYQA5yLry1isyFbdiCJM7f+3xix2+RK YEri1ClBPkoyWzzwMbhlj3+Cgq7lj8z1Gbg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeehgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepofggfffhvf fkufgtgfesthejredtredttdenucfhrhhomhepfdfoihhkvgcuuegrhigvrhdfuceomhhi khgvpghmphesiiiiiigtohhmphhuthhinhhgrdgtohhmqeenucggtffrrghtthgvrhhnpe dviedttdfgvdfgffeileegteeugfeuhfdvveekhfevheekffefkeeuffeikeefhfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihhkvggpmh hpseiiiiiitghomhhpuhhtihhnghdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggv pehsmhhtphhouhhtpdhrtghpthhtohepphhgshhqlhdqsghughhssehlihhsthhsrdhpoh hsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i1c194411:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id DCEFE3C0066; Thu, 12 Dec 2024 09:09:18 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Thu, 12 Dec 2024 09:08:58 -0500 From: "Mike Bayer" To: pgsql-bugs@lists.postgresql.org Message-Id: Subject: invalid constraint type "n" when using pg_catalog.pg_get_constraintdef() on pg17, regression from pg16 Content-Type: text/plain Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk this occurs on postgresql 17.2 and did not occur on any previous version including 16, 15, 14. apologies if this has already been reported but I didn't see any means of looking up existing issues complete steps below $ psql -U scott -h pg17 test Password for user scott: psql (16.3, server 17.2) WARNING: psql major version 16, server major version 17. Some psql features might not work. Type "help" for help. test=> CREATE DOMAIN not_nullable_domain AS TEXT NOT NULL; CREATE DOMAIN test=> SELECT domain_constraints.condefs, domain_constraints.connames, pg_catalog.pg_collation.collname FROM pg_catalog.pg_type JOIN pg_catalog.pg_namespace ON pg_catalog.pg_namespace.oid = pg_catalog.pg_type.typnamespace LEFT OUTER JOIN pg_catalog.pg_collation ON pg_catalog.pg_type.typcollation = pg_catalog.pg_collation.oid LEFT OUTER JOIN (SELECT pg_catalog.pg_constraint.contypid AS contypid, array_agg(pg_catalog.pg_get_constraintdef(pg_catalog.pg_constraint.oid, true)) AS condefs, array_agg(CAST(pg_catalog.pg_constraint.conname AS TEXT)) AS connames FROM pg_catalog.pg_constraint WHERE pg_catalog.pg_constraint.contypid != 0 GROUP BY pg_catalog.pg_constraint.contypid) AS domain_constraints ON pg_catalog.pg_type.oid = domain_constraints.contypid WHERE pg_catalog.pg_type.typtype = 'd' ORDER BY pg_catalog.pg_namespace.nspname, pg_catalog.pg_type.typname; ERROR: invalid constraint type "n"