From: Tom Lane Date: Wed, 21 Nov 2007 04:01:37 +0000 (+0000) Subject: Clarify the syntax rules for raw tsvector input. X-Git-Tag: REL8_3_BETA4~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fec1d72dd15bdd0a1d12c7daf49d461d6444d01e;p=thirdparty%2Fpostgresql.git Clarify the syntax rules for raw tsvector input. --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 5bdb06070b6..c67c6268556 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -3282,7 +3282,7 @@ SELECT 'a fat cat sat on a mat and ate a fat rat'::tsvector; (As the example shows, the sorting is first by length and then alphabetically, but that detail is seldom important.) To represent - lexemes containing whitespace, surround them with quotes: + lexemes containing whitespace or punctuation, surround them with quotes: SELECT $$the lexeme ' ' contains spaces$$::tsvector; @@ -3293,7 +3293,7 @@ SELECT $$the lexeme ' ' contains spaces$$::tsvector; (We use dollar-quoted string literals in this example and the next one, to avoid confusing matters by having to double quote marks within the - literals.) Embedded quotes can be handled by doubling them: + literals.) Embedded quotes and backslashes must be doubled: SELECT $$the lexeme 'Joe''s' contains a quote$$::tsvector;