I need a help with a trigger, this trigger I need to pass a value that comes from the queue column in the asterisk.queue table.
CREATE TRIGGER gerarconf
AFTER INSERT OR UPDATE
ON asterisk.fila
FOR EACH ROW
EXECUTE PROCEDURE asterisk.registra_gerar_conf_fila('FILA','XXXXX');
In place of XXXX I need to pass the value of the queue column that came from the insert or update of the asterisk.queue table
Best Answer
Use NEW or OLD depending if you need the inserted or updated record.
Postgres documentation