Re: Preserve tablespace of exclusion constraint indexes in ALTER TYPE

From: Osama Abdul Qader <osamaabdulqaderpostgres(at)gmail(dot)com>
To: 신성준 <shinsj4653(at)gmail(dot)com>
Cc: pgsql-hackers mailing list <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Henson Choi <assam258(at)gmail(dot)com>
Subject: Re: Preserve tablespace of exclusion constraint indexes in ALTER TYPE
Date: 2026-11-27 07:10:36
Message-ID: CAAprpiAQPFtXC-rYzA4pHNKokopjbDr1N65M+QCNs3QH4jS1hw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi again,

On Fri, 27 Nov 2026 at 05:20, 신성준 <shinsj4653(at)gmail(dot)com> wrote:

> Hi Osama,
>
> Thank you for your interest in reviewing this patch as well.
>
> I have registered it in the Commitfest, and you can find the entry here:
> https://commitfest.postgresql.org/patch/7727/
>
> I appreciate your help and look forward to any feedback you may have.
>
> Best regards,
> Seongjun Shin
>

I've successfully reviewed patch v1.

The patch looks good to me. Passing `fullCommand` as the `showTblSpc`
argument ensures that the tablespace clause is included when generating the
internal full constraint command, while keeping the public
`pg_get_constraintdef()` output unchanged.

The regression test in `tablespace.sql` also covers the exclusion
constraint's tablespace preservation across the ALTER COLUMN TYPE
operations.

I've tested the patch locally:

- Builds PostgreSQL using `make -j$(nproc)` successfully.
- `make check` passed all 239 regression test cases successfully.

I couldn't identify any blocking issues. The patch looks good to me, and
I've added myself as a reviewer on commitfest.

Best regards,
Osama Abdul Qader.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jakub Wartak 2026-11-27 08:11:02 Re: enhancing pg_basebackup speeds up to ~23Gbps (small fixes + io_uring/Direct I/O)
Previous Message Staroverov Ilja 2026-11-27 06:58:31 Optional UTF-8 encoding for server logs