Skip to content
masterclass Buddy

PostgreSQL · Type Alias

bytea

PostgreSQL's bytea type stores variable-length raw binary data. It accepts hex and escape input; hex output is the default and is preferred for new applications.

Last updated

Syntax

bytea

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • bytea_output
  • text
  • character varying
  • Large Object

Source: PostgreSQL: Documentation: 18: 8.4. Binary Data Types. Checked 2026-11-03.