Re: SELECT results in "ERROR: index key does not match expected index column"

Поиск
Список
Период
Сортировка
От Manuel Rigger
Тема Re: SELECT results in "ERROR: index key does not match expected index column"
Дата
Msg-id CA+u7OA7DpQVO9+0kLT5jUxyZfQPcSXRJbrGu5jVeu0MR0YE8Cg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SELECT results in "ERROR: index key does not match expected index column"  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-bugs
Just to clarify: I'm developing a tool to find bugs in Postgres, and
this is one of the findings, which could be the reason that some of
the statements might look unusual.

Best,
Manuel

On Wed, Jul 3, 2019 at 4:44 AM Andrew Gierth
<andrew@tao11.riddles.org.uk> wrote:
>
> >>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>
>  Tom> (You realize of course that an index on a constant is pretty
>  Tom> useless. I wonder if we should disallow that.)
>
> Unique index on a constant is a standard technique for forcing a table
> to be limited to at most one row (or with a partial index, at most one
> row matching a condition). Non-unique index on a constant is probably
> not useful though.
>
> --
> Andrew (irc:RhodiumToad)



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Manuel Rigger
Дата:
Сообщение: DISCARD TEMP results in "ERROR: cache lookup failed for type 0"
Следующее
От: Manuel Rigger
Дата:
Сообщение: Re: VACUUM FULL results in deadlock