Re: Speeding up text_position_next with multibyte encodings - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: Speeding up text_position_next with multibyte encodings
Date
Msg-id CA+q6zcXNNZbEehrKkPJ06MzLzou=AB2W1BGGmJp8gnYAWgEO3A@mail.gmail.com
Whole thread Raw
In response to Re: Speeding up text_position_next with multibyte encodings  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
List pgsql-hackers
> At Fri, 19 Oct 2018 15:52:59 +0300, Heikki Linnakangas <hlinnaka@iki.fi> wrote
> Attached is a patch to speed up text_position_setup/next(), in some
> common cases with multibyte encodings.

Hi,

Unfortunately, patch doesn't compile anymore due:

varlena.c: In function ‘text_position_next_internal’:
varlena.c:1337:13: error: ‘start_ptr’ undeclared (first use in this function)
  Assert(start_ptr >= haystack && start_ptr <= haystack_end);

Could you please send an updated version? For now I'm moving it to the next CF.


pgsql-hackers by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: Reduce amount of WAL generated by CREATE INDEX for gist, gin and sp-gist
Next
From: Surafel Temesgen
Date:
Subject: Re: FETCH FIRST clause PERCENT option