How to download Postgres bytea column as file

前端 未结 6 1813
甜味超标
甜味超标 2020-12-24 06:13

Currently, i have a number of files stored in postgres 8.4 as bytea. The file types are .doc, .odt, .pdf, .txt and etc.

May i know how to download all the file store

6条回答
  •  孤城傲影
    2020-12-24 06:58

    Best I'm aware, bytea to file needs to be done at the app level.

    (9.1 might change this with the filesystem data wrapper contrib. There's also a lo_export function, but it is not applicable here.)

提交回复
热议问题