Re: [PATCH] Add sortsupport for range types and btree_gist

2024-03-22 Thread Bernd Helmle
Hi Andrey, Am Freitag, dem 22.03.2024 um 18:27 +0500 schrieb Andrey M. Borodin: > > Here is a rebased version of the patch. > > FWIW it would be nice at least port tests from commit that I > referenced upthread. > Nowadays we have injection points, so these tests can be much more > stable.

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-03-22 Thread Andrey M. Borodin
> On 22 Mar 2024, at 18:20, Bernd Helmle wrote: > > Here is a rebased version of the patch. FWIW it would be nice at least port tests from commit that I referenced upthread. Nowadays we have injection points, so these tests can be much more stable. Sorry for bringing up this so late.

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-03-22 Thread Bernd Helmle
Hi, Here is a rebased version of the patch. Since i don't have anything to add at the moment and the numbers looks promising and to move on, i've marked this patch "Ready For Committer". Thanks, Bernd diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile index

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-02-13 Thread Bernd Helmle
Am Montag, dem 12.02.2024 um 21:00 +0800 schrieb jian he: > + > +  Per default btree_gist builts > GiST indexe with > +  sortsupport in sorted > mode. This usually results in a > +  much better index quality and smaller index sizes by much faster > index built speed. It is still > +  possible to

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-02-12 Thread jian he
On Fri, Feb 9, 2024 at 2:14 AM Bernd Helmle wrote: > > Am Mittwoch, dem 10.01.2024 um 22:18 +0800 schrieb jian he: > > > > I split the original author's patch into 2. > > 1. Add GiST sortsupport function for all the btree-gist module data > > types except anyrange data type (which actually does

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-02-08 Thread Bernd Helmle
Am Mittwoch, dem 10.01.2024 um 22:18 +0800 schrieb jian he: > > I split the original author's patch into 2. > 1. Add GiST sortsupport function for all the btree-gist module data > types except anyrange data type (which actually does not in this > module) > 2. Add GiST sortsupport function for

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-01-26 Thread Bernd Helmle
Am Freitag, dem 26.01.2024 um 18:31 +0530 schrieb vignesh C: > CFBot shows that the patch does not apply anymore as in [1]: > === Applying patches on top of PostgreSQL commit ID I've started working on it and planning to submit a polished patch for the upcoming CF.

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-01-26 Thread vignesh C
On Wed, 10 Jan 2024 at 19:49, jian he wrote: > > On Wed, Jan 10, 2024 at 8:00 AM jian he wrote: > > > > ` > > from the doc, add sortsupport function will only influence index build time? > > > > +/* > > + * GiST sortsupport comparator for ranges. > > + * > > + * Operates solely on the lower

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-01-10 Thread Bernd Helmle
Am Mittwoch, dem 10.01.2024 um 20:13 +0500 schrieb Andrey M. Borodin: > I think GiST sortsupport comments are more relevant, so there's no > need for this pfree()s. > > Also, please check other thread, maybe you will find some useful code > there [0,1]. It was committed[2] once, but reverted.

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-01-10 Thread Bernd Helmle
Am Mittwoch, dem 10.01.2024 um 08:00 +0800 schrieb jian he: > you do  `CREATE INDEX ON pgbench_accounts USING gist(aid);` > but the original patch didn't change contrib/btree_gist/btree_int4.c > So I doubt your benchmark is related to the original patch. > or maybe I missed something. > The

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-01-10 Thread Andrey M. Borodin
> On 10 Jan 2024, at 19:18, jian he wrote: > > what I am confused: > In fmgr.h > > /* > * Support for cleaning up detoasted copies of inputs. This must only > * be used for pass-by-ref datatypes, and normally would only be used > * for toastable types. If the given pointer is different

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-01-10 Thread jian he
On Wed, Jan 10, 2024 at 8:00 AM jian he wrote: > > ` > from the doc, add sortsupport function will only influence index build time? > > +/* > + * GiST sortsupport comparator for ranges. > + * > + * Operates solely on the lower bounds of the ranges, comparing them using > + * range_cmp_bounds(). >

Re: [PATCH] Add sortsupport for range types and btree_gist

2024-01-09 Thread jian he
On Thu, Dec 1, 2022 at 1:27 AM Bernd Helmle wrote: > > Hi, > > No deep code review yet, but CF is approaching its end and i didn't > have time to look at this earlier :/ > > Below are some things i've tested so far. > > Am Mittwoch, dem 15.06.2022 um 12:45 +0200 schrieb Christoph Heiss: > > > >

Re: [PATCH] Add sortsupport for range types and btree_gist

2022-10-02 Thread Andres Freund
On 2022-10-02 00:23:32 -0700, Andres Freund wrote: > Updated the patch to add the minimal change for meson compat. Now I made the same mistake of not adding the change... Clearly I need to stop for tonight. Either way, here's the hopefully correct change. >From

Re: [PATCH] Add sortsupport for range types and btree_gist

2022-10-02 Thread Andres Freund
Hi, On 2022-08-31 21:15:40 +0200, Christoph Heiss wrote: > Notable changes from v1: > - gbt_enum_sortsupport() now passes on fcinfo->flinfo > enum_cmp_internal() needs a place to cache the typcache entry. > - inet sortsupport now uses network_cmp() directly Updated the patch to add the minimal

Re: [PATCH] Add sortsupport for range types and btree_gist

2022-08-31 Thread Christoph Heiss
Hi! Sorry for the long delay. This fixes the crashes, now all tests run fine w/ and w/o debug configuration. That shouldn't even have slipped through as such. Notable changes from v1: - gbt_enum_sortsupport() now passes on fcinfo->flinfo enum_cmp_internal() needs a place to cache the

Re: [PATCH] Add sortsupport for range types and btree_gist

2022-08-02 Thread Jacob Champion
This entry has been waiting on author input for a while (our current threshold is roughly two weeks), so I've marked it Returned with Feedback. Once you think the patchset is ready for review again, you (or any interested party) can resurrect the patch entry by visiting

Re: [PATCH] Add sortsupport for range types and btree_gist

2022-07-05 Thread Jacob Champion
On Wed, Jun 15, 2022 at 3:45 AM Christoph Heiss wrote: > `make check-world` reports no regressions. cfbot is reporting a crash in contrib/btree_gist: https://cirrus-ci.com/github/postgresql-cfbot/postgresql/commitfest/38/3686 Thanks, --Jacob

Re: [PATCH] Add sortsupport for range types and btree_gist

2022-06-15 Thread Andrey Borodin
Hi Christoph! > On 15 Jun 2022, at 15:45, Christoph Heiss wrote: > > By sorting the data before inserting it into the index results in a much > better index structure, leading to significant performance improvements. Here's my version of the very similar idea [0]. It lacks range types

[PATCH] Add sortsupport for range types and btree_gist

2022-06-15 Thread Christoph Heiss
Hi all! The motivation behind this is that incrementally building up a GiST index for certain input data can create a terrible tree structure. Furthermore, exclusion constraints are commonly implemented using GiST indices and for that use case, data is mostly orderable. By sorting the data