Re: CREATE TABLE .. LIKE copies comments to an unrelated table

From: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>
To: Junwang Zhao <zhjwpku(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CREATE TABLE .. LIKE copies comments to an unrelated table
Date: 2026-10-01 18:45:24
Message-ID: efb0f3cf-ac7b-4a6a-b40c-79bb8147c232@uni-muenster.de
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 01/10/2026 18:02, Jim Jones wrote:
> Thanks! I will write some tests and prepare a patch.

PFA this fix and some tests in create_table_like.sql.

Best, Jim

Attachment Content-Type Size
v1-0001-Fix-copied-comments-landing-on-wrong-table-in-CRE.patch text/x-patch 4.7 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Burd 2026-10-01 19:10:21 Let an ordering index scan hand its ORDER BY value to the target list
Previous Message Masahiko Sawada 2026-10-01 18:30:19 Re: REPACK (CONCURRENTLY) can crash a logical decoding session