agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Optimize sorting and deduplicating trigrams
Date: Tue, 07 Apr 2026 11:27:29 +0000
Message-ID: <E1wA4ae-003Nvj-1K@gemulon.postgresql.org> (raw)
Optimize sorting and deduplicating trigrams
Use templated qsort() so that the comparison function can be
inlined. To speed up qunique(), use a specialized comparison function
that only checks for equality.
Author: David Geier <geidav.pg@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://www.postgresql.org/message-id/2a76b5ef-4b12-4023-93a1-eed6e64968f3@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9f3755ea07aa8858999bdac3d33151e93d2643e2
Modified Files
--------------
contrib/pg_trgm/trgm_op.c | 63 +++++++++++++++++++++++++++++++++++++++--------
1 file changed, 53 insertions(+), 10 deletions(-)
Message-ID: <E1wA4ae-003Nvj-1K@gemulon.postgresql.org>
Permalink: ../E1wA4ae-003Nvj-1K@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wA4ae-003Nvj-1K@gemulon.postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Optimize sorting and deduplicating trigrams
In-Reply-To: <E1wA4ae-003Nvj-1K@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox