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.98.2) (envelope-from ) id 1xASYc-00000002esN-1WSy for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Sep 2026 13:35:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xASOc-00000004Nby-00Nf for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Sep 2026 13:24:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xAS0f-00000004FRY-2RBj for pgsql-bugs@lists.postgresql.org; Sat, 26 Sep 2026 13:00:09 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xAS0c-00000001Ohm-3kDu for pgsql-bugs@lists.postgresql.org; Sat, 26 Sep 2026 13:00:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=f1ZxaJT1whpe9omz+lSv25w1tVDsWpBoIuObtPRRHpw=; b=jyujAqhWm3Mj1DxoqoQsueLw6d caBYGjxdGGRxCLK+ylRZY6ndfT+4Nn8jQ/PZ4FT7gIzF1fKJ6flybo1mh64O6Ed0CFHxCP4tKQCM+ b/xAZci4KfMJnn2B/kWu07M9Kc/oGP8fQBzhDHLnwI81MqeT2AKpCo7eKMd7l747irJbDEtPfgOiL XH68Y2UpnN9iI1gtdWdY646r/RrvgRQPmxRfrGy98KWcXi34aU0vso7qSD8qgVI3ms2/mQoPOAzWQ 6dl0MBDIitbx0BvqMSF7efYVYMtQuFISgu9iIBxwwSiJd0PdFbVLxp+1+qQJXp2wFPsk4meqOXlAi 3vRQYRgw==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xAS0b-0041qD-0y for pgsql-bugs@lists.postgresql.org; Sat, 26 Sep 2026 13:00:05 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xAS0Z-0000000BnRR-12hI for pgsql-bugs@lists.postgresql.org; Sat, 26 Sep 2026 13:00:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19724: ALTER TYPE ... ALTER ATTRIBUTE triggers internal error for base type of domain with check To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: exclusion@gmail.com Reply-To: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Date: Sat, 26 Sep 2026 13:00:01 +0000 Message-ID: <19724-58468097b5b17d10@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19724 Logged by: Alexander Lakhin Email address: exclusion@gmail.com PostgreSQL version: 19beta4 Operating system: Ubuntu 24.04 Description: =20 The following script: CREATE TYPE rt AS (i int); CREATE DOMAIN dt AS int CHECK ((ROW(value)::rt).i > 0); ALTER TYPE rt ALTER ATTRIBUTE i TYPE bigint; triggers an internal ERROR: XX000: could not identify relation associated with constraint 16390 LOCATION: ATPostAlterTypeCleanup, tablecmds.c:16147 Reproduced starting from af20e2d72.