Skip to content

Add tsvector type support#1

Open
abrightwell wants to merge 1 commit intomasterfrom
abrightwell-tsvector
Open

Add tsvector type support#1
abrightwell wants to merge 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
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