Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On PostgreSQL, column type bytea has improper rendering #13

Open
krpors opened this issue Aug 24, 2021 · 2 comments
Open

On PostgreSQL, column type bytea has improper rendering #13

krpors opened this issue Aug 24, 2021 · 2 comments

Comments

@krpors
Copy link
Owner

krpors commented Aug 24, 2021

On PostgreSQL (maybe also other RDBMS?), the blob type bytea is rendered using the hashcode of the value in the table view. For example, this table definition:

image

is rendered as follows:

image

Ideally this would be rendered differently. Probably depends on size of the content (don't want to render 500 megabytes of data, for instance).

@aadrian
Copy link

aadrian commented Aug 25, 2021

@krpors The hash is useful, in order to see right away if it's the same content or something different.

Maybe a tooltip or popover for that cell type with a selectable viewer would be helpful.

Many DB tools do this - and default it to a HexViewer, with different Image Viewers (jpg/png) as alternative option.
For bigger contents, there's also "save cell to file" to be able to open it with the right tool.

@krpors
Copy link
Owner Author

krpors commented Aug 26, 2021

I have been thinking about some kind of a hex viewer as well. There is a small but to this blob thing though: The query executed can result in a lot of results, returning many blobs. The complete result could be 54 Kb, or orders of magnitude higher. I'm not sure how the application will handle that.

Let's say a resultset returns 3 records, each record has a blob type, and each of its contents are +500 MB, heapsize of the application is limited to 512 Mb. What happens then? I haven't tested this yet :)

In any case, a hex viewer for a blob/bytea type would be nice I suppose. And saving individual cell contents would be helpful as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants