Re: Index tuple deduplication limitations in pg13

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Index tuple deduplication limitations in pg13
Дата
Msg-id CAH2-WznkxRdhzqBsgf=L34vp2bpzxeG0SC8JYiwp1DFMOAhRRA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Index tuple deduplication limitations in pg13  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-general
On Tue, Aug 18, 2020 at 9:44 AM Peter Geoghegan <pg@bowt.ie> wrote:
> If we wanted to fix this for numeric, we'd have to invent a new
> numeric datatype (called numeric2, say). That probably isn't as hard
> as it sounds, since it could be part of the same B-Tree operator
> family as numeric. It could also be implicitly cast to numeric.

I forgot to say: numeric2 would be just like numeric, except in one
specific way: it wouldn't care about display scale. The user would be
giving up on display scale by choosing numeric2 over numeric. The "5
vs 5.000" information would always be lost by design, so there'd be
nothing for deduplication to break. Deduplication could then be
enabled.

-- 
Peter Geoghegan



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Index tuple deduplication limitations in pg13
Следующее
От: Scottix
Дата:
Сообщение: Re: "Go" (lang) standard driver