Revision b08b354b
Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt
sql/Pg-upgrade2/trigram_extension.sql | ||
---|---|---|
1 |
-- @tag: trigram_extension |
|
2 |
-- @description: Trigram-Index-Erweiterung installieren |
|
3 |
-- @depends: release_3_5_0 |
|
4 |
-- @ignore: 0 |
|
5 |
-- @superuser_privileges: 1 |
|
6 |
|
|
7 |
CREATE EXTENSION IF NOT EXISTS pg_trgm; |
sql/Pg-upgrade2/trigram_indices.sql | ||
---|---|---|
1 | 1 |
-- @tag: trigram_indices |
2 | 2 |
-- @description: Trigram Indizes für häufig durchsuchte Spalten |
3 |
-- @depends: release_3_5_0 shops |
|
4 |
-- @ignore: 1 |
|
5 |
|
|
3 |
-- @depends: release_3_5_0 trigram_extension |
|
6 | 4 |
|
7 | 5 |
CREATE INDEX customer_customernumber_gin_trgm_idx ON customer USING gin (customernumber gin_trgm_ops); |
8 | 6 |
CREATE INDEX customer_name_gin_trgm_idx ON customer USING gin (name gin_trgm_ops); |
sql/Pg-upgrade2/trigram_indices_webshop.sql | ||
---|---|---|
1 | 1 |
-- @tag: trigram_indices_webshop |
2 | 2 |
-- @description: Trigram Indizes für Fuzzysearch bei der Kundensuche im Shopmodul |
3 |
-- @depends: release_3_5_0 shops |
|
4 |
-- @ignore: 1 |
|
3 |
-- @depends: release_3_5_0 trigram_extension |
|
5 | 4 |
|
6 | 5 |
CREATE INDEX customer_street_gin_trgm_idx ON customer USING gin (street gin_trgm_ops); |
Auch abrufbar als: Unified diff
Trigramm-Erweiterung installieren & Trigramm-Indizes anlegen