↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / Array Functions And Operators

array_prepend

Read the PG 18 manual

Prepends an element to the beginning of an array (same as the anycompatible || anycompatiblearray operator).

Reading PG 18current·documented in 24 of 27 versions, 7.4 to 20

Signatures & examples

array_prepend ( anycompatible, anycompatiblearray ) → anycompatiblearray
Prepends an element to the beginning of an array (same as the anycompatible || anycompatiblearray operator).
array_prepend(1, ARRAY[2,3]) → {1,2,3}
Version history 4
  1. 13 → 14 changed
  2. 12 → 13 changed
  3. 7.4 → 8.0 changed
  4. 7.3 → 7.4 added

Definition snapshot: b7bd9cda · English manual source