xxd is a utility from Vim to read Hexdump. It is possible to install it standalone from AUR repositories in ArchLinux.
yay -S xxd-standalone
xxd is a utility from Vim to read Hexdump. It is possible to install it standalone from AUR repositories in ArchLinux.
yay -S xxd-standalonebytea column to binary file
The \copy allows you to export tables to your local file system. To export bytea columns and export to binary file you can encode it as hexadecimal and decode it using xxd