↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Functions

set_byte

Sets n'th byte in binary string to newvalue.

English manual coverage begins with PostgreSQL 7.1. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

group
binarystring
group label
Binary String Functions And Operators
lang
en
layout
table-new
pages
functions-binarystring.html
prose only
false

Definition PG 18

Sets n'th byte in binary string to newvalue.

Signatures and overloads

set_byte ( bytes bytea, n integer, newvalue integer ) → bytea → bytea
Sets n'th byte in binary string to newvalue.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · wiki-repair-20261023:7d137da193f41dfcadfc5607a8fa7988d7ba2b93e2a382d7d04a8396ad4eedf8

Text language: en · wiki-repair-20261023:7d137da193f41dfcadfc5607a8fa7988d7ba2b93e2a382d7d04a8396ad4eedf8