Re: BUG #16730: Create table like with inheritance and self referencing index
Sofoklis Papasofokli <sofoklis24@gmail.com>
From: Sofoklis Papasofokli <sofoklis24@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2020-11-20T10:32:18Z
Lists: pgsql-bugs
Hi Tom, Thanks for the quick response. I have not done a patch before, I will try to figure it out over the weekend and get back to you on how it works for our exact scenario. Thanks again! Best regards, Sofoklis On Thu, Nov 19, 2020 at 10:10 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > PG Bug reporting form <noreply@postgresql.org> writes: > > The following simplified example used to work on previous versions, but > not > > on 10.15, we tested it again on version 10.11 and it works. > > Hmph. Apparently I was too careless about the order of execution of > the sub-commands created by a LIKE clause. > > I pushed this patch: > > > https://git.postgresql.org/gitweb/?p=postgresql.git;a=patch;h=513db7b7004c8d1fa15dea4747a32cbc8f9621ef > > which takes care of the particular case you show, but now I wonder > if there are other issues lurking nearby. If you're in a position > to test this and see if it fixes your real application, please do. > > Thanks for the report! > > regards, tom lane > -- Sofoklis
Commits
-
Further fixes for CREATE TABLE LIKE: cope with self-referential FKs.
- c690ebbefa33 11.11 landed
- 98f3f1d5c1bf 13.2 landed
- 97390fe8a6e9 14.0 landed
- 87ab46421925 12.6 landed
- 6631d5f261e9 9.5.25 landed
- 513db7b7004c 10.16 landed
- 159b6775fad9 9.6.21 landed