Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfec1d72

Browse files
committed
Clarify the syntax rules for raw tsvector input.
1 parentd23ba77 commitfec1d72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.216 2007/11/08 13:13:51 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.217 2007/11/21 04:01:37 tgl Exp $ -->
22

33
<chapter id="datatype">
44
<title id="datatype-title">Data Types</title>
@@ -3282,7 +3282,7 @@ SELECT 'a fat cat sat on a mat and ate a fat rat'::tsvector;
32823282

32833283
(As the example shows, the sorting is first by length and then
32843284
alphabetically, but that detail is seldom important.) To represent
3285-
lexemes containing whitespace, surround them with quotes:
3285+
lexemes containing whitespace or punctuation, surround them with quotes:
32863286

32873287
<programlisting>
32883288
SELECT $$the lexeme ' ' contains spaces$$::tsvector;
@@ -3293,7 +3293,7 @@ SELECT $$the lexeme ' ' contains spaces$$::tsvector;
32933293

32943294
(We use dollar-quoted string literals in this example and the next one,
32953295
to avoid confusing matters by having to double quote marks within the
3296-
literals.) Embedded quotescan be handled by doubling them:
3296+
literals.) Embedded quotesand backslashes must be doubled:
32973297

32983298
<programlisting>
32993299
SELECT $$the lexeme 'Joe''s' contains a quote$$::tsvector;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp