Posts by Lucas Simões • 11 points
2 posts
-
0
votes2
answers246
viewsA: Postgres: How to compare json to create audit Trigger and display only differences
I managed to solve the problem in a slightly different way that in my view was good for the result I wanted. CREATE OR REPLACE FUNCTION auditoria() RETURNS trigger AS $BODY$ DECLARE pCodigo integer;…
-
1
votes2
answers246
viewsQ: Postgres: How to compare json to create audit Trigger and display only differences
According to the structure below, I would like that when it was updated I could memorize only the differences. Example in the table produto I have the fields: prodcodigo = 1 proddescricao = 'FILTRO…