Index: trunk/phase3/maintenance/postgres/tables.sql |
— | — | @@ -63,12 +63,12 @@ |
64 | 64 | page_len INTEGER NOT NULL |
65 | 65 | ); |
66 | 66 | CREATE UNIQUE INDEX page_unique_name ON page (page_namespace, page_title); |
67 | | -CREATE INDEX page_main_title ON page (page_title) WHERE page_namespace = 0; |
68 | | -CREATE INDEX page_talk_title ON page (page_title) WHERE page_namespace = 1; |
69 | | -CREATE INDEX page_user_title ON page (page_title) WHERE page_namespace = 2; |
70 | | -CREATE INDEX page_utalk_title ON page (page_title) WHERE page_namespace = 3; |
71 | | -CREATE INDEX page_project_title ON page (page_title) WHERE page_namespace = 4; |
72 | | -CREATE INDEX page_mediawiki_title ON page (page_title) WHERE page_namespace = 8; |
| 67 | +CREATE INDEX page_main_title ON page (page_title text_pattern_ops) WHERE page_namespace = 0; |
| 68 | +CREATE INDEX page_talk_title ON page (page_title text_pattern_ops) WHERE page_namespace = 1; |
| 69 | +CREATE INDEX page_user_title ON page (page_title text_pattern_ops) WHERE page_namespace = 2; |
| 70 | +CREATE INDEX page_utalk_title ON page (page_title text_pattern_ops) WHERE page_namespace = 3; |
| 71 | +CREATE INDEX page_project_title ON page (page_title text_pattern_ops) WHERE page_namespace = 4; |
| 72 | +CREATE INDEX page_mediawiki_title ON page (page_title text_pattern_ops) WHERE page_namespace = 8; |
73 | 73 | CREATE INDEX page_random_idx ON page (page_random); |
74 | 74 | CREATE INDEX page_len_idx ON page (page_len); |
75 | 75 | |