Re: BUG #19013: When creating a table with the "...LIKE...INCLUDING ALL" construct, REPLICA IDENTITY output is wrong
Álvaro Herrera <alvherre@kurilemu.de>
From: Álvaro Herrera <alvherre@kurilemu.de>
To: "dbman@sqlexec.com" <dbman@sqlexec.com>
Cc: "David G. Johnston" <david.g.johnston@gmail.com>, "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Date: 2025-08-06T18:04:37Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add the notion of REPLICA IDENTITY for a table.
- 07cacba983ef 9.4.0 cited
On 2025-Aug-06, dbman@sqlexec.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)