↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Functions

encode

Encodes binary data into a textual representation; supported format values are: base64, escape, hex.

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

Encodes binary data into a textual representation; supported format values are: base64, escape, hex.

Signatures and overloads

encode ( bytes bytea, format text ) → text → text
Encodes binary data into a textual representation; supported format values are: base64, escape, hex.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · wiki-repair-20261023:19171a62684198f998b56cc2ca9ad1b9a43655ad6562e472c9d91c5206085f65

Text language: en · wiki-repair-20261023:19171a62684198f998b56cc2ca9ad1b9a43655ad6562e472c9d91c5206085f65