From: Justin Pryzby <pryzby@telsasoft.com>
To: Mike Sofen <msofen@runbox.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: MingJu Wu <mingjuwu0505@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Partial index creation always scans the entire table
Date: Sun, 16 Feb 2020 18:52:26 -0600
Message-ID: <20200217005226.GK31889@telsasoft.com> (raw)
In-Reply-To: <05fc01d5e52b$3c3d1c50$b4b754f0$@runbox.com>
References: <CAKVFrvFY-f7kgwMRMiPLbPYMmgjc8Y2jjUGK_Y0HVcYAmU6ymg@mail.gmail.com>
<43b329d274c3535c75d2fbd6912b5ae8e3e51582.camel@cybertec.at>
<19549.1581867005@sss.pgh.pa.us>
<05fc01d5e52b$3c3d1c50$b4b754f0$@runbox.com>
On Sun, Feb 16, 2020 at 04:43:10PM -0800, Mike Sofen wrote:
> >From: Tom Lane <tgl@sss.pgh.pa.us> Sent: Sunday, February 16, 2020 7:30
> AM
> >I've seen people try to do this before. I wonder if the manual page about
> partial indexes should explicitly say "don't do that".
> > regards, tom lane
>
> Yes please (seriously). The utter beauty of Postgres is the flexibility and
> power that its evolutionary path has allowed/created. The tragic danger is
> that the beauty is fairly easy to misapply/misuse.
Quote. Enough rope to shoot yourself in the foot.
Would you care to suggest text to be included here ?
https://www.postgresql.org/docs/devel/indexes-partial.html
--
Justin
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-performance@postgresql.org
Cc: pryzby@telsasoft.com, msofen@runbox.com, tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, mingjuwu0505@gmail.com, pgsql-performance@lists.postgresql.org
Subject: Re: Partial index creation always scans the entire table
In-Reply-To: <20200217005226.GK31889@telsasoft.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