pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: splarv@ya.ru
Subject: ^@ operator for text
Date: Thu, 23 Dec 2021 11:34:56 +0000
Message-ID: <164025929698.19324.7276266494030468977@wrigleys.postgresql.org> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/functions-string.html
Description:

In the new documentation 
https://www.postgresql.org/docs/14/functions-string.html
you again lost information about ^@ operator for text and keep information
about only function starts_with on which this operator is based. But ^@ is
very important, because it can be accelerated by special index SP-GIST
index.
https://www.postgresql.org/docs/14/spgist-builtin-opclasses.html
The task to filter text strings by prefix is rather common and using ^@ and
SP-GIST is the best solution for this (rather options is to use starts_with
without index acceleration or use LIKE construction with SP-GIST, which more
complex (need to mention C locales), overengeniered and may be more slow).

As I say the filtering text by prefix is very common task, but information
about the best method is absent now.


view thread (4+ messages)  latest in thread

Message-ID: <164025929698.19324.7276266494030468977@wrigleys.postgresql.org>
Permalink:  ../164025929698.19324.7276266494030468977@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/164025929698.19324.7276266494030468977@wrigleys.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-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, splarv@ya.ru
  Subject: Re: ^@ operator for text
  In-Reply-To: <164025929698.19324.7276266494030468977@wrigleys.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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox