↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Text Search Functions And Operators

array_to_tsvector

Read the PG 18 manual

Converts an array of text strings to a tsvector.

Reading PG 18current·documented in 12 of 27 versions, 9.6 to 20

Signatures & examples

array_to_tsvector ( text[] ) → tsvector
Converts an array of text strings to a tsvector. The given strings are used as lexemes as-is, without further processing. Array elements must not be empty strings or NULL.
array_to_tsvector('{fat,cat,rat}'::text[]) → 'cat' 'fat' 'rat'
Version history 3
  1. 14 → 15 changed
  2. 12 → 13 changed
  3. 9.5 → 9.6 added

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source