From: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
---|---|
To: | "dbman(at)sqlexec(dot)com" <dbman(at)sqlexec(dot)com> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #19013: When creating a table with the "...LIKE...INCLUDING ALL" construct, REPLICA IDENTITY output is wrong |
Date: | 2025-08-06 18:04:37 |
Message-ID: | 202508061804.wwf4zc7npayp@alvherre.pgsql |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 2025-Aug-06, dbman(at)sqlexec(dot)com wrote:
> Good point aboutg the default value for pg_class.relreplident is always "d",
> but maybe it should be "n" which indicates there is no REPLICA IDENTITY.
I think this behavior is just an oversight made when replica identity
was introduced. Commit 07cacba983ef didn't touch the CREATE TABLE LIKE
code.
To me, it makes sense to copy the replica identity definition if
INCLUDING INDEXES or INCLUDING CONSTRAINTS is given.
Patching released branches seems out of the question (it might disrupt
working workflows), but for 19 it isn't, if we agree on an ideal
behavior.
--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
"Siempre hay que alimentar a los dioses, aunque la tierra esté seca" (Orual)
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2025-08-06 18:34:53 | Re: BUG #19013: When creating a table with the "...LIKE...INCLUDING ALL" construct, REPLICA IDENTITY output is wrong |
Previous Message | dbman@sqlexec.com | 2025-08-06 16:52:28 | Re: BUG #19013: When creating a table with the "...LIKE...INCLUDING ALL" construct, REPLICA IDENTITY output is wrong |