Postgresql Create Trigger Function Oscilloscope