Re: Bytea datatype content to view

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Bytea datatype content to view
Дата
Msg-id 202411061603.rile4w5i3ugo@alvherre.pgsql
обсуждение исходный текст
Ответ на Bytea datatype content to view  (Wasim Devale <wasimd60@gmail.com>)
Ответы Re: Bytea datatype content to view
Список pgsql-admin
On 2024-Nov-06, Wasim Devale wrote:

> Hi All
> 
> I have a table having bytea datatype. Anyone has worked on it how we can
> see the content as the files are in .csv, .pdf, .bin and .docx format.

In a pinch, you could turn the bytea column into an LO using the
lo_from_bytea() function and use psql's \lo_export.  Quick and easy, no
need to write any code.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/



В списке pgsql-admin по дате отправления: