From 8a5592daf1bcc65f002fce23de1ee0e533e6c6a6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 22 Aug 2007 05:13:50 +0000 Subject: Remove option to change parser of an existing text search configuration. This prevents needing to do complex and poorly-defined updates of the mapping table if the new parser has different token types than the old. Per discussion. --- doc/src/sgml/ref/alter_tsconfig.sgml | 30 +++--------------------------- doc/src/sgml/ref/create_tsconfig.sgml | 9 ++++----- 2 files changed, 7 insertions(+), 32 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/alter_tsconfig.sgml b/doc/src/sgml/ref/alter_tsconfig.sgml index 295ba1df647..e40f34fd619 100644 --- a/doc/src/sgml/ref/alter_tsconfig.sgml +++ b/doc/src/sgml/ref/alter_tsconfig.sgml @@ -1,5 +1,5 @@ @@ -20,9 +20,6 @@ PostgreSQL documentation -ALTER TEXT SEARCH CONFIGURATION name ( - PARSER = parser_name -) ALTER TEXT SEARCH CONFIGURATION name ADD MAPPING FOR token_type [, ... ] WITH dictionary_name [, ... ] ALTER TEXT SEARCH CONFIGURATION name @@ -43,8 +40,8 @@ ALTER TEXT SEARCH CONFIGURATION name OWNER TO ALTER TEXT SEARCH CONFIGURATION changes the definition of - a text search configuration. You can change which parser it uses, modify - its mapping from token types to dictionaries, + a text search configuration. You can modify + its mappings from token types to dictionaries, or change the configuration's name or owner. @@ -68,15 +65,6 @@ ALTER TEXT SEARCH CONFIGURATION name OWNER TO - - parser_name - - - The name of a new text search parser to use for this configuration. - - - - token_type @@ -154,19 +142,7 @@ ALTER TEXT SEARCH CONFIGURATION name OWNER TO - - - Notes - - While changing the text search parser used by a configuration is allowed, - this will only work nicely if old and new parsers use the same set of - token types. It is advisable to drop the mappings for any incompatible - token types before changing parsers. - - - - Examples diff --git a/doc/src/sgml/ref/create_tsconfig.sgml b/doc/src/sgml/ref/create_tsconfig.sgml index 49be9411d56..048cb63ce9a 100644 --- a/doc/src/sgml/ref/create_tsconfig.sgml +++ b/doc/src/sgml/ref/create_tsconfig.sgml @@ -1,5 +1,5 @@ @@ -98,10 +98,9 @@ CREATE TEXT SEARCH CONFIGURATION nameNotes - It is allowed to specify both PARSER and COPY, - resulting in the specified parser being used with whatever mappings - are in the source configuration. This is generally inadvisable, - unless you know that both parsers involved use the same token type set. + The PARSER and COPY options are mutually + exclusive, because when an existing configuration is copied, its + parser selection is copied too. -- cgit v1.2.3