Feature: Preview for bytea image fields in query results

未关闭
#9,852 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
postgresql, python
领域
database

调研方向

The issue does not identify any files, tests, or entry points in pgAdmin. Research would need to locate the query result grid and its bytea rendering path first; done would include image detection and preview behavior, with the optional open and download actions defined and tested.

由索引模型根据 Issue 内容生成。

描述

Feature

Describe the solution you'd like

Add native support in pgAdmin to preview bytea fields as images (e.g., JPEG, PNG) directly in the query result grid.

The tool should automatically detect common image formats and provide a visual preview (thumbnail or full image), similar to what is available in DBeaver.

Optionally, include actions such as:

  • "Open as image"
  • "Download file"

Describe alternatives you've considered

Currently, the only alternatives are:

  • Manually converting bytea data to base64 or binary and saving it as a file
  • Using external tools or scripts (e.g., Node.js, Python) to reconstruct the image
  • Using other database clients like DBeaver, which already support this feature

These approaches are time-consuming and reduce productivity when inspecting data.


Additional context

This feature would significantly improve the usability of pgAdmin when working with binary data, especially for debugging and validating stored images.

Example use case:

SELECT image_data FROM files LIMIT 1;

In pgAdmin, the result is displayed as raw binary/hex data, making it difficult to interpret. A built-in preview would eliminate the need for manual extraction.

This is particularly useful in systems that store files or images directly in PostgreSQL using bytea.

主要语言
Python
星标
3.9k
派生
918
平均合并
2 天 12 小时
30 天内合并 PR
35

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pgadmin-org/pgadmin4 的其他 Issue

查看 pgadmin-org/pgadmin4 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。