From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>, Manuel Rigger <rigger(dot)manuel(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: SELECT results in "ERROR: index key does not match expected index column" |
Date: | 2019-07-03 00:06:43 |
Message-ID: | CAH2-WzmzRVSpPM8wKXxfreZOuLWjhaW35M9wrFun31-+TohmQw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Tue, Jul 2, 2019 at 4:46 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > I think it should cause an error, most likely an unintentional
> > implementation mistake -- so the sooner it is flagged the better to
> > remedy it!
>
> On reflection that might be overkill. I've heard of people using
> unique indexes on constants to constrain tables to one row, and
> you can make interesting refinements by making the index partial.
I think it's overkill. As you pointed out not too long ago, there are
several ways to define an index that probably or definitely results in
a useless index. There is no reason to draw the line here, or
anywhere.
--
Peter Geoghegan
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Gierth | 2019-07-03 02:44:08 | Re: SELECT results in "ERROR: index key does not match expected index column" |
Previous Message | Tom Lane | 2019-07-02 23:45:53 | Re: SELECT results in "ERROR: index key does not match expected index column" |