agora inbox for pgsql-bugs@postgresql.org  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Subject: BUG #19724: ALTER TYPE ... ALTER ATTRIBUTE triggers internal error for base type of domain with check
Date: Sat, 26 Sep 2026 13:00:01 +0000
Message-ID: <19724-58468097b5b17d10@postgresql.org> (raw)

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:        

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.








view thread (2+ messages)  latest in thread

Message-ID: <19724-58468097b5b17d10@postgresql.org>
Permalink:  ../19724-58468097b5b17d10@postgresql.org/
Also on:    postgresql.org/message-id/19724-58468097b5b17d10@postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, exclusion@gmail.com
  Subject: Re: BUG #19724: ALTER TYPE ... ALTER ATTRIBUTE triggers internal error for base type of domain with check
  In-Reply-To: <19724-58468097b5b17d10@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox