Re: BUG #18607: UNION ALL discards all foreign key relations + indexes

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Sanskar Agrawal <sanskar(at)flintk12(dot)com>
Cc: pgsql-bugs mailing list <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #18607: UNION ALL discards all foreign key relations + indexes
Date: 2024-09-10 07:13:00
Message-ID: Zt_xfCSMgpVoxggF@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Sep 10, 2024 at 12:41:14PM +0530, Sanskar Agrawal wrote:
> Yes consider a small table as users with users.id as primary key,
>
> took two rows from the same and ran a union all it tends to drop the
> indexes + foreign relations

Please show full example that I can run on empty DB.

Set of create table statement(s), adding indexes, foreign keys, and then
create view, that results in dropped indexes/foreign keys.

Best regards,

depesz

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message hubert depesz lubaczewski 2024-09-10 07:45:02 Re: BUG #18607: UNION ALL discards all foreign key relations + indexes
Previous Message hubert depesz lubaczewski 2024-09-10 07:10:00 Re: BUG #18607: UNION ALL discards all foreign key relations + indexes