Re: Bytea as "Binary Data"

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Bytea as "Binary Data"
Дата
Msg-id CA+OCxoytSiaXLLkQv65EdHoGv6kGwOK11MeNNYe1Q_WnnZ5VJA@mail.gmail.com
обсуждение исходный текст
Ответ на Bytea as "Binary Data"  (Colin Beckingham <colbec@kingston.net>)
Ответы Re: Bytea as "Binary Data"  (Colin Beckingham <colbec@kingston.net>)
Список pgadmin-support


On Mon, Jul 2, 2018 at 8:43 AM, Colin Beckingham <colbec@kingston.net> wrote:
Currently pgadmin4 displays bytea fields as "[Binary Data]".

In searching the archives for the reason for this, I found some discussion on lengthy processing slowing down display. So a decision was made to not attempt to display the data at all, and since the data can be lengthy this makes some sense.

While such binary data is not "readable", in the era of SHA hashes it is useful to be able to visually check that the right hash is in the right column using the first few text characters. We can of course do this in the Postgresql REPL or even in the old phpPgAdmin which usefully displays part of the 'escape' translation of the hash.

Is there some concrete reason for not displaying such data, or is the community open to revealing a short stub which would be more helpful than no representation at all? Thanks.

I'm not opposed to showing something more useful than "[Binary Data]". The question is, what exactly? In many cases it'll likely be unreadable garbage.

FYI, eventually I'd like to be able to try to detect the data type, so if we find it's actually an image for example, we can display it (and potentially have an editor cell that allows you to replace it). 


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Colin Beckingham
Дата:
Сообщение: Bytea as "Binary Data"
Следующее
От: Colin Beckingham
Дата:
Сообщение: Re: Bytea as "Binary Data"