A column with a trigger is not updated when a data change is made through the Data Output section
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Reproduce the issue in pgAdmin's Data Output section using the supplied PostgreSQL table, trigger, and INSERT/UPDATE steps. Start with the Save Data Changes flow and compare the edited row with the database result after the trigger runs. Done means the Data Output section refreshes the trigger-updated date column immediately after saving, without requiring a separate SELECT.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi !
1. What
I think that a column with a trigger is not updated in the Data Output section after a Data Change has been made on another column.
Here are my pgAdmin infos :
- Version : 9.11
- Application Mode : Desktop
- Commit : dc801e362ebde7fe59ecf77eaaab740fe7452cc5 2025-12-08
- Python Version : 3.14.1
- Browser : Chrome 143.0.0.0
- Operating System : Alpine Linux v3.23, Linux-6.12.10-76061203-generic-x86_64-with-musl1
2. How
- Create a new table with a few columns, including one date column
CREATE TABLE mytable (
id SERIAL PRIMARY KEY,
value TEXT,
date TIMESTAMP WITH TIME ZONE
);
- Add a trigger to this table :
CREATE OR REPLACE FUNCTION public.myfunction()
RETURNS TRIGGER AS $$
BEGIN
NEW.date = NOW();
RETURN NEW;
END;
$$ language 'plpgsql';
CREATE OR REPLACE TRIGGER mytrigger
BEFORE INSERT OR UPDATE ON mytable
FOR EACH ROW EXECUTE FUNCTION myfunction();
- Do an
INSERTquery :
INSERT INTO mytable VALUES (DEFAULT, 'Something', current_timestamp);
- Do a
SELECTquery :
SELECT * FROM mytable;
🟢 Seen & expected behavior :
- the inserted row can be seen in the "Data Output" section
- the
datecolumn has been correctly filled (by the trigger) and is correctly displayed
-
Change the value of one of the columns (but not the
dateone) through the "Data Output" section -
Press the "Save Data Changes" button
🔴 Seen behavior : only the edited column is up to date in the "Data Output" section
Expected behavior : the date column should be up to date as well
- Do a
SELECTquery
SELECT * FROM mytable;
🟢 Seen & expected behavior :
- the edited row can be seen in the "Data Output" section
- the
datecolumn is now correctly displayed (with its updated value)
3. Why
It seems that, after a successful "Data Change", pgAdmin doesn't get the last known value of the row (or of the other attributes of the row). It only updates the modified cell(s).
- Lenguaje dominante
- Python
- Estrellas
- 3.9k
- Forks
- 922
- Merge medio
- 2 d 3 h
- PR fusionados (30 d)
- 33
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pgadmin-org/pgadmin4
-
Invalid syntax in sshtunnelPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
pgadmin-org/pgadmin4#10797 ·
Los mantenedores suelen responder en 2 días
-
Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pgadmin-org/pgadmin4#10426 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
pgadmin-org/pgadmin4#10796 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Schema Diff does not detect foreign keys that reference a different schemaPosiblemente ocupada @dpage la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 57/100
pgadmin-org/pgadmin4#10786 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
pgadmin-org/pgadmin4#10783 ·
Los mantenedores suelen responder en 2 días
Todos los issues de pgadmin-org/pgadmin4
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mohanraj00/entelos#200 ·
Los mantenedores suelen responder en 1 día
-
Dead url in mise.tomlAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
-
sweep
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
bketelsen/truenas-mcp#77 ·
Los mantenedores suelen responder en 1 día
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
sandbox-quantum/switch#2163 ·
Los mantenedores suelen responder en 1 día