Re: Compressed TOAST Slicing

Поиск
Список
Период
Сортировка
От Paul Ramsey
Тема Re: Compressed TOAST Slicing
Дата
Msg-id CACowWR22CBAGP-9tWiKxns3DcpQ55TT-K1W0xeWP7LBGon4PSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Compressed TOAST Slicing  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: Compressed TOAST Slicing  ("Daniel Verite" <daniel@manitou-mail.org>)
Re: Compressed TOAST Slicing  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On Wed, Feb 20, 2019 at 10:50 AM Daniel Verite <daniel@manitou-mail.org> wrote:
>
>         Paul Ramsey wrote:
>
> > Oddly enough, I couldn't find many/any things that were sensitive to
> > left-end decompression. The only exception is "LIKE this%" which
> > clearly would be helped, but unfortunately wouldn't be a quick
> > drop-in, but a rather major reorganization of the regex handling.
>
> What about starts_with(string, prefix)?
>
> text_starts_with(arg1,arg2) in varlena.c does a full decompression
> of  arg1 when it could limit itself to the length of the smaller arg2:

Nice catch, I didn't find that one as it's not user visible, seems to
be only called in spgist (!!)
./backend/access/spgist/spgtextproc.c:
DatumGetBool(DirectFunctionCall2(text_starts_with

Thanks, I'll add that.

P


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: BUG #15646: Inconsistent behavior for current_setting/set_config
Следующее
От: Justin Pryzby
Дата:
Сообщение: BRIN summarize autovac_report_workitem passes datname as relname