|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsdictionary.sgml,v 1.2 2007/08/22 01:39:44 tgl Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsdictionary.sgml,v 1.3 2007/10/17 01:01:28 tgl Exp $ |
3 | 3 | PostgreSQL documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -122,6 +122,21 @@ ALTER TEXT SEARCH DICTIONARY my_dict ( StopWords = newrussian );
|
122 | 122 | <programlisting>
|
123 | 123 | ALTER TEXT SEARCH DICTIONARY my_dict ( language = dutch, StopWords );
|
124 | 124 | </programlisting>
|
| 125 | + |
| 126 | + <para> |
| 127 | + The following example command <quote>updates</> the dictionary's |
| 128 | + definition without actually changing anything. |
| 129 | + |
| 130 | +<programlisting> |
| 131 | +ALTER TEXT SEARCH DICTIONARY my_dict ( dummy ); |
| 132 | +</programlisting> |
| 133 | + |
| 134 | + (The reason this works is that the option removal code doesn't complain |
| 135 | + if there is no such option.) This trick is useful when changing |
| 136 | + configuration files for the dictionary: the <command>ALTER</> will |
| 137 | + force existing database sessions to re-read the configuration files, |
| 138 | + which otherwise they would never do if they had read them earlier. |
| 139 | + </para> |
125 | 140 | </refsect1>
|
126 | 141 |
|
127 | 142 | <refsect1>
|
|