From: hubert depesz lubaczewski <depesz@depesz.com>
To: Sanskar Agrawal <sanskar@flintk12.com>
Cc: pgsql-bugs mailing list <pgsql-bugs@postgresql.org>
Subject: Re: BUG #18607: UNION ALL discards all foreign key relations + indexes
Date: Tue, 10 Sep 2024 09:13:00 +0200
Message-ID: <Zt_xfCSMgpVoxggF@depesz.com> (raw)
In-Reply-To: <CAL9bbZquC=BZa61TSHgX7vXjMN7BWtEgOCuzM8gwbn0jD3uvLg@mail.gmail.com>
References: <18607-651aa996c1e71d48@postgresql.org>
<Zt_wyM5koKKmOmdn@depesz.com>
<CAL9bbZquC=BZa61TSHgX7vXjMN7BWtEgOCuzM8gwbn0jD3uvLg@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: depesz@depesz.com, sanskar@flintk12.com
Subject: Re: BUG #18607: UNION ALL discards all foreign key relations + indexes
In-Reply-To: <Zt_xfCSMgpVoxggF@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox