Feature: Preview for bytea image fields in query results

Abierto
#9,852 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
postgresql, python
Área
database

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
3.9k
Forks
918
Merge medio
2 d 12 h
PR fusionados (30 d)
35

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pgadmin-org/pgadmin4

Todos los issues de pgadmin-org/pgadmin4

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.