joa
05/01/2022, 8:22 PMlast_active timestamptz
column, and the thought was to have a trigger set the field to now()
on every INSERT and UPDATE. So, I created a function for this (which returns a trigger) and then set that as a trigger "on" the table. However, I can't see that anything is happeningNeedle
05/01/2022, 8:22 PM/title
command!
We have solved your problem?
Click the button below to archive it.joa
05/01/2022, 8:23 PMBEGIN
NEW.last_active = now();
RETURN NEW;
END;
joa
05/01/2022, 8:25 PMjoa
05/01/2022, 8:31 PMlast_active
field -- but I only wound up with value NULLgaryaustin
05/01/2022, 8:36 PMNeedle
05/01/2022, 8:36 PMjoa
05/01/2022, 8:37 PMjoa
05/01/2022, 8:37 PMjoa
05/01/2022, 8:38 PMgaryaustin
05/01/2022, 8:38 PMjoa
05/01/2022, 8:38 PMjoa
05/01/2022, 8:38 PMgaryaustin
05/01/2022, 8:38 PMjoa
05/01/2022, 8:38 PMjoa
05/01/2022, 8:39 PMjoa
05/01/2022, 8:40 PMjoa
05/01/2022, 8:41 PMjoa
05/01/2022, 8:42 PMjoa
05/01/2022, 8:42 PMgaryaustin
05/01/2022, 8:45 PMjoa
05/01/2022, 8:46 PMgaryaustin
05/01/2022, 8:47 PMjoa
05/01/2022, 8:47 PMjoa
05/01/2022, 8:48 PMjoa
05/01/2022, 8:49 PMjoa
05/01/2022, 8:49 PMjoa
05/01/2022, 8:50 PMtick
table, but which would call a different function which would log the event "internally"joa
05/01/2022, 8:50 PMgaryaustin
05/01/2022, 9:00 PMjoa
05/01/2022, 9:30 PMjoa
05/01/2022, 9:30 PM