↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Operators

||(anycompatible,anycompatiblearray)

prepend element onto front of array

Reading PG 18·Select a recorded version

Left operand
anycompatible
Right operand
anycompatiblearray
Result type
anycompatiblearray
Implementing function
array_prepend(anycompatible,anycompatiblearray)
Operator kind
Binary
Hash join candidate
no
Merge join candidate
no
aliases
||, ||(anycompatible,anycompatiblearray)
manual semantics
Exact operand/result signature matched
memberships
Unknown
signature
||(anycompatible,anycompatiblearray) → anycompatiblearray
source oid
374

Definition PG 18

prepend element onto front of array

Compare versions

Complete source facts

operator

{"commutator":"","function":"array_prepend(anycompatible,anycompatiblearray)","hash_join":"f","kind":"b","left_type":"anycompatible","merge_join":"f","negator":"","result_type":"anycompatiblearray","right_type":"anycompatiblearray","symbol":"||"}

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

Text language: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f