This small excercise tests out the blob storage of postgres in combination with golang. It provides a small binary that is doing the work.
init
: ensures the database has the right tablestore
: stores a file in postgresload
: loads a file from postgres
export PG_CONN='user=chartmann dbname=chartmann sslmode=disable'
pgbytea init
pgbytea add hello hello.md
pgbytea read hello > test.md
pgbytea delete hello