Skip to content

Commit 8b6795c

Browse files
committed
docs: document the behavior of stripping 0
1 parent df7059d commit 8b6795c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/docs/ops/targets.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ For all other vector types, we map them to `jsonb` columns.
3939

4040
:::
4141

42+
:::info U+0000 (NUL) characters in strings
43+
44+
U+0000 (NUL) is a valid character in Unicode, but Postgres has a limitation that strings (including `text`-like types and strings in `jsonb`) cannot contain them.
45+
CocoIndex automatically strips U+0000 (NUL) characters from strings before exporting to Postgres. For example, if you have a string `"Hello\0World"`, it will be exported as `"HelloWorld"`.
46+
47+
:::
48+
4249
#### Spec
4350

4451
The spec takes the following fields:

0 commit comments

Comments
 (0)