Skip to content

Add tsvector type support#1

Merged
abrightwell merged 1 commit intomasterfrom
abrightwell-tsvector
Mar 10, 2026
Merged

Add tsvector type support#1
abrightwell merged 1 commit intomasterfrom
abrightwell-tsvector

Conversation

@abrightwell
Copy link
Owner

Implement PostgreSQL tsvector type with support for:

  • Lexemes with positions and weights (A, B, C, D)
  • Binary and text format encoding/decoding
  • Quote and backslash escape handling
  • Array type support
  • CopyFrom operations

Note: Some escape sequences (doubled quotes, backslash escapes) are PostgreSQL-specific and not supported by CockroachDB.

Resolves jackc#2483

Implement PostgreSQL `tsvector` type with support for:

- Lexemes with positions and weights (A, B, C, D)
- Binary and text format encoding/decoding
- Quote and backslash escape handling
- Array type support
- CopyFrom operations

Note: Some escape sequences (doubled quotes, backslash escapes) are
PostgreSQL-specific and not supported by CockroachDB.

Resolves jackc#2483
@abrightwell abrightwell force-pushed the abrightwell-tsvector branch from 29c0f91 to ea6b093 Compare March 8, 2026 13:43
@abrightwell abrightwell merged commit 6e1e9eb into master Mar 10, 2026
36 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pgx.CopyFromRows does not work with tsvector column in destination table

1 participant