From: | tomas(at)tuxteam(dot)de |
---|---|
To: | PgSQL General <pgsql-general(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Index greater than 8k |
Date: | 2006-11-02 10:00:15 |
Message-ID: | 20061102100015.GA15966@www.trapp.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Nov 01, 2006 at 07:16:37PM -0300, Alvaro Herrera wrote:
> tomas(at)tuxteam(dot)de wrote:
[...]
> > a "functional trigram index"? (this would be very cool).
>
> Heh :-) I meant an index, using the pg_trgm opclass (which indexes
> trigrams; hence the "trigram" part), on a function that would extract
> the text from a bytea column [...]
[goes back to cave, tests...]
Wow, that works:
CREATE INDEX i2 ON words USING gist(lower(word) gist_trgm_ops);
so I can interpose a (of course immutable) function before gist/trigram
does its thing. Why didn't I dare to assume that this will work?
Thanks for the hint.
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFFScGvBcgs9XrR2kYRAl9tAJ9JvWvVo0nrexs409IIKPustuJkXwCbBW5n
W5/wwTogiSdg3rhTXq5pRio=
=t90X
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Peter | 2006-11-02 11:35:41 | Weird double single quote issue |
Previous Message | Magnus Hagander | 2006-11-02 09:39:06 | Re: Availability of pg_backend_pid() immediately after connection establishment |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2006-11-02 10:27:44 | Re: [HACKERS] Case Preservation disregarding case |
Previous Message | Magnus Hagander | 2006-11-02 09:18:35 | Re: Design Considerations for New Authentication Methods |